syst...linux(8)

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

πŸŽ€ NAME

okay so bestie, this is the syst...linux(8) page β€” the whole vibe of it is the SELinux policy for the systemd_factory_reset_generator processes πŸ’… like, that's the entire assignment.

✨ DESCRIPTION ✨

Security-Enhanced Linux secures the systemd_factory_reset_generator processes via flexible mandatory access control. that's the whole point, no cap πŸ”₯

so the systemd_factory_reset_generator processes execute with the systemd_factory_reset_generator_t SELinux type. and you can check if you've got these processes running β€” just run the ps command with the -Z qualifier. iconic behaviour honestly.

For example:

ps -eZ | grep systemd_factory_reset_generator_t

πŸšͺ ENTRYPOINTS

the systemd_factory_reset_generator_t SELinux type can be entered via the systemd_factory_reset_generator_exec_t file type πŸ¦‹

the default entrypoint paths for the systemd_factory_reset_generator_t domain are, literally, these:

/usr/lib/systemd/system-generators/systemd-factory-reset-generator

πŸ‘‘ PROCESS TYPES

so SELinux defines process types (domains) for each process running on the system. every single one, main character energy fr fr.

you can see the context of a process using the -Z option to ps ⭐

policy governs the access confined processes have to files. and the SELinux systemd_factory_reset_generator policy is very flexible β€” it allows users to set up their systemd_factory_reset_generator processes in as secure a method as possible 🫢

the following process types are defined for systemd_factory_reset_generator:

  • systemd_factory_reset_generator_t
Note: semanage permissive -a systemd_factory_reset_generator_t can be used to make the process type systemd_factory_reset_generator_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated πŸ’€ so like, it's chill but it's still watching you.

🌈 BOOLEANS

SELinux policy is customizable based on least access required. the systemd_factory_reset_generator policy is extremely flexible and has several booleans that allow you to manipulate the policy and run systemd_factory_reset_generator with the tightest access possible πŸ”₯

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 systemd_factory_reset_generator_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 β€” don't forget, bestie πŸ™ˆ

  • 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
  • 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 πŸ‘‘

you can see the context of a file using the -Z option to ls ✨

policy governs the access confined processes have to these files. the SELinux systemd_factory_reset_generator policy is very flexible β€” it allows users to set up their systemd_factory_reset_generator processes in as secure a method as possible πŸ’–

STANDARD FILE CONTEXT

SELinux defines the file context types for the systemd_factory_reset_generator. 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 systemd_factory_reset_generator_exec_t
'/srv/systemd_factory_reset_generator/content(/.*)?'
restorecon -R -v /srv/mysystemd_factory_reset_generator_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex slay πŸ’…

the following file types are defined for systemd_factory_reset_generator:

  • systemd_factory_reset_generator_exec_t β€” set files with the systemd_factory_reset_generator_exec_t type, if you want to transition an executable to the systemd_factory_reset_generator_t domain πŸ”₯
  • systemd_factory_reset_generator_unit_file_t β€” set files with the systemd_factory_reset_generator_unit_file_t type, if you want to treat the files as systemd factory reset generator unit content ⭐
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 πŸ™ˆ so like, chcon is the quick fix and semanage + restorecon is the actual committed relationship, iykyk.

πŸ’… 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** β€” a GUI tool available to customize SELinux policy settings. πŸ–₯️✨

🫢 AUTHOR

this manual page was auto-generated using sepolicy manpage . like the robot did it, not me, I'm just the messenger πŸ’€

πŸ’œ SEE ALSO

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


and that's the whole page bestie πŸŽ€ this was systemd_factory_reset_generator, dated 26-10-06, served up in the syst...linux(8) section β€” go forth and label responsibly πŸ’…βœ¨πŸŒΈ

πŸ“¦ where this page comes from