lwregd_selinux(8)

πŸ“¦
version 20250627+git412.dbf877ab7 Β· 7 versions
, in opensuse-leap 16.0

πŸ’… lwregd_selinux(8) β€” the SELinux glow-up for lwregd processes

okay so bestie, you found the lwregd_selinux page (it lives in the SELinux Policy lwregd manual, iykyk) and honestly? it's giving "mandatory access control but make it cute." let's get into it πŸŽ€


✨ NAME ✨

lwregd_selinux β€” Security Enhanced Linux Policy for the lwregd processes. literally that's the whole vibe. 🌸


πŸ¦‹ DESCRIPTION πŸ¦‹

Security-Enhanced Linux secures the lwregd processes via flexible mandatory access control. no cap, that's the whole point.

The lwregd processes execute with the lwregd_t SELinux type. wanna check if you've got these processes running? just run the ps command with the -Z qualifier, easy.

for example:

ps -eZ | grep lwregd_t

✨ icon behavior honestly.


πŸšͺ ENTRYPOINTS πŸšͺ

The lwregd_t SELinux type can be entered via the lwregd_exec_t file type. that's the door, periodt.

The default entrypoint paths for the lwregd_t domain are the following:

/usr/bin/lwregd
/opt/likewise/sbin/lwregd

πŸ‘‘ PROCESS TYPES πŸ‘‘

SELinux defines process types (domains) for each process running on the system. one per process, main character energy.

You can see the context of a process using the -Z option to ps. yes, again with the -Z. it's iconic, it ate.

Policy governs the access confined processes have to files. SELinux lwregd policy is very flexible, allowing users to setup their lwregd processes in as secure a method as possible. 🫢

The following process types are defined for lwregd:

lwregd_t
Note: semanage permissive -a lwregd_t can be used to make the process type lwregd_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like… it stops blocking but it's still gonna talk about you behind your back πŸ’€

πŸ”˜ BOOLEANS πŸ”˜

SELinux policy is customizable based on least access required. lwregd policy is extremely flexible and has several booleans that allow you to manipulate the policy and run lwregd with the tightest access possible. tightest access = bestie behavior, fr fr.

If you want to dontaudit all daemons scheduling requests (setsched, sys_nice), you must turn on the daemons_dontaudit_scheduling boolean. Enabled by default.

setsebool -P daemons_dontaudit_scheduling 1

If you want to allow all domains to execute in fips_mode, you must turn on the fips_mode boolean. Enabled by default.

setsebool -P fips_mode 1

πŸ—‚οΈ MANAGED FILES πŸ—‚οΈ

The SELinux process type lwregd_t can manage files labeled with the following file types. The paths listed are the default paths for these file types. Note the processes UID still need to have DAC permissions. (yes, SELinux says yes but DAC can still say no β€” double gatekeeping 😭)

  • cluster_conf_t
/etc/cluster(/.*)?
  • cluster_var_lib_t
/var/lib/pcsd(/.*)?
/var/lib/cluster(/.*)?
/var/lib/openais(/.*)?
/var/lib/pengine(/.*)?
/var/lib/corosync(/.*)?
/usr/lib/heartbeat(/.*)?
/var/lib/heartbeat(/.*)?
/var/lib/pacemaker(/.*)?
  • cluster_var_run_t
/run/crm(/.*)?
/run/cman_.*
/run/rsctmp(/.*)?
/run/aisexec.*
/run/heartbeat(/.*)?
/run/pcsd-ruby.socket
/run/corosync-qnetd(/.*)?
/run/corosync-qdevice(/.*)?
/run/pcsd.socket
/run/corosync.pid
/run/cpglockd.pid
/run/rgmanager.pid
/run/cluster/rgmanager.sk
  • lwregd_var_lib_t
/var/lib/likewise/regsd.err
/var/lib/likewise-open/regsd.err
/var/lib/likewise/db/registry.db
/var/lib/likewise-open/db/registry.db
  • lwregd_var_run_t
/run/lwregd.pid
  • root_t
/sysroot/.aleph-version.json
/sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
/
/initrd
/var/lib/ntp

πŸ“ FILE CONTEXTS πŸ“

SELinux requires files to have an extended attribute to define the file type. it's the file's little name tag at the function πŸŽ€

You can see the context of a file using the -Z option to ls.

Policy governs the access confined processes have to these files. SELinux lwregd policy is very flexible, allowing users to setup their lwregd processes in as secure a method as possible.

🌈 STANDARD FILE CONTEXT 🌈

SELinux defines the file context types for the lwregd. If you wanted to store files with these types in a different paths, you need to execute the semanage command to specify alternate labeling and then use restorecon to put the labels on disk.

semanage fcontext -a -t lwregd_exec_t '/srv/lwregd/content(/.*)?'
restorecon -R -v /srv/mylwregd_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex girlies rise πŸ’…

The following file types are defined for lwregd:

lwregd_exec_t

  • Set files with the lwregd_exec_t type, if you want to transition an executable to the lwregd_t domain.

Paths:

/usr/bin/lwregd
/opt/likewise/sbin/lwregd

lwregd_var_lib_t

  • Set files with the lwregd_var_lib_t type, if you want to store the lwregd files under the /var/lib directory.

Paths:

/var/lib/likewise/regsd.err
/var/lib/likewise-open/regsd.err
/var/lib/likewise/db/registry.db
/var/lib/likewise-open/db/registry.db

lwregd_var_run_t

  • Set files with the lwregd_var_run_t type, if you want to store the lwregd files under the /run or /var/run directory.

lwregd_var_socket_t

  • Set files with the lwregd_var_socket_t type, if you want to treat the files as lwregd var socket data.

Paths:

/var/lib/likewise/.regsd
/var/lib/likewise-open/.regsd
Note: File context can be temporarily modified with the chcon command. If you want to permanently change the file context you need to use the semanage fcontext command. This will modify the SELinux labeling database. You will need to use restorecon to apply the labels. temporary = cute for today, permanent = semanage + restorecon combo, periodt ✨

πŸ› οΈ COMMANDS πŸ› οΈ

semanage fcontext can also be used to manipulate default file context mappings.

semanage permissive can also be used to manipulate whether or not a process type is permissive.

semanage module can also be used to enable/disable/install/remove policy modules.

semanage boolean can also be used to manipulate the booleans.

system-config-selinux is a GUI tool available to customize SELinux policy settings. a whole GUI, for the girlies who like buttons πŸ’…


✍️ AUTHOR ✍️

This manual page was auto-generated using sepolicy manpage. not me being auto-generated and still serving looks 😭


πŸ‘€ SEE ALSO πŸ‘€

selinux(8), lwregd(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8)


and that's the page bestie, go forth and label responsibly πŸ¦‹πŸ’–

this little number came from the lwregd manual, dated 26-10-06, and it's page lwregd_selinux(8) β€” mwah, stan πŸŽ€

πŸ“¦ where this page comes from