glance_r...y_selinux(8)

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

πŸ’… glance_registry_selinux(8) β€” the manual page, but make it make sense

okay bestie, so this is the glance_registry_selinux manual page (yes, the header on the original literally says glance_r...y_selinux(8) β€” they truncated it, iconic) and it's all about the SELinux policy for the glance_registry processes. buckle up, it's actually kinda fascinating. πŸ’–


✨ NAME ✨

glance_registry_selinux β€” the Security Enhanced Linux Policy for the glance_registry processes. that's it, that's the whole vibe. πŸŽ€


🌸 DESCRIPTION 🌸

Security-Enhanced Linux secures the glance_registry processes via flexible mandatory access control. yes, mandatory β€” SELinux doesn't ask, it just enforces. main character energy fr fr. πŸ‘‘

The glance_registry processes execute with the glance_registry_t SELinux type. wanna check if you've got these processes running? just run the ps command with the -Z qualifier. like this:

ps -eZ | grep glance_registry_t

that's the whole vibe check, no cap. πŸ¦‹


πŸšͺ ENTRYPOINTS πŸšͺ

so the glance_registry_t SELinux type can be entered via the glance_registry_exec_t file type. that's the door, bestie.

The default entrypoint paths for the glance_registry_t domain are literally just:

/usr/bin/glance-registry

one path. one legend. πŸ’…


πŸ‘‘ PROCESS TYPES πŸ‘‘

SELinux defines process types (domains) for each process running on the system. so yeah, every process gets its own little labeled zone.

You can see the context of a process using the -Z option to ps. super handy, remember it. ✨

Policy governs the access confined processes have to files. The SELinux glance_registry policy is very flexible, allowing users to setup their glance_registry processes in as secure a method as possible. tightest access possible, that's the goal. πŸŽ€

The following process types are defined for glance_registry:

  • glance_registry_t
Note: semanage permissive -a glance_registry_t can be used to make the process type glance_registry_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 still snitches. πŸ’€

πŸ”˜ BOOLEANS πŸ”˜

SELinux policy is customizable based on least access required, and glance_registry policy is extremely flexible β€” it's got several booleans that let you manipulate the policy and run glance_registry with the tightest access possible. little switches for your policy, obsessed. 🌈

  • 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
  • If you want to allow the glance domain to use executable memory and executable stack, you must turn on the glance_use_execmem boolean. Disabled by default.
setsebool -P glance_use_execmem 1
  • If you want to allow the system to run with NIS, you must turn on the nis_enabled boolean. Disabled by default.
setsebool -P nis_enabled 1

πŸ”Œ PORT TYPES πŸ”Œ

SELinux defines port types to represent TCP and UDP ports. yes, ports have labels too, everything has labels. 🐚

You can see the types associated with a port by using the following command:

semanage port -l

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

The following port types are defined for glance_registry:

  • glance_registry_port_t

Default Defined Ports:

tcp 9191
udp 9191

nine-one-nine-one, write it down bestie. πŸ“


πŸ“‚ MANAGED FILES πŸ“‚

The SELinux process type glance_registry_t can manage files labeled with the following file types. the paths listed are the default paths for these file types. and hey β€” note the processes UID still need to have DAC permissions. SELinux is extra, not a replacement. 🫢

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

fusefs_t

/run/user/[0-9]+/gvfs

glance_registry_tmp_t

(no default paths listed β€” it's just vibes ✨)

glance_registry_tmpfs_t

(also no default paths listed πŸŽ€)

glance_var_lib_t

/var/lib/glance(/.*)?

glance_var_run_t

/run/glance(/.*)?

krb5_host_rcache_t

/var/tmp/krb5_0.rcache2
/var/cache/krb5rcache(/.*)?
/var/tmp/nfs_0
/var/tmp/DNS_25
/var/tmp/host_0
/var/tmp/imap_0
/var/tmp/HTTP_23
/var/tmp/HTTP_48
/var/tmp/ldap_55
/var/tmp/ldap_487
/var/tmp/ldapmap1_0

root_t

/sysroot/.aleph-version.json
/sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
/
/initrd
/var/lib/ntp

like, that's a lot of paths, but every single one matters. ate. πŸ”₯


🏷️ FILE CONTEXTS 🏷️

SELinux requires files to have an extended attribute to define the file type. yes, files have ✨labels✨, it's giving designer handbag.

You can see the context of a file using the -Z option to ls. go try it, bestie.

Policy governs the access confined processes have to these files. The SELinux glance_registry policy is very flexible, allowing users to setup their glance_registry processes in as secure a method as possible. πŸ’œ

⭐ STANDARD FILE CONTEXT ⭐

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

semanage fcontext -a -t glance_registry_exec_t '/srv/glance_registry/content(/.*)?'
restorecon -R -v /srv/myglance_registry_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex girlies stay winning. 🧚

The following file types are defined for glance_registry:

  • glance_registry_exec_t β€” set files with the glance_registry_exec_t type if you want to transition an executable to the glance_registry_t domain.
  • glance_registry_initrc_exec_t β€” set files with the glance_registry_initrc_exec_t type if you want to transition an executable to the glance_registry_initrc_t domain.
  • glance_registry_tmp_t β€” set files with the glance_registry_tmp_t type if you want to store glance registry temporary files in the /tmp directories.
  • glance_registry_tmpfs_t β€” set files with the glance_registry_tmpfs_t type if you want to store glance registry files on a tmpfs file system.
  • glance_registry_unit_file_t β€” set files with the glance_registry_unit_file_t type if you want to treat the files as glance registry 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 a story post, semanage fcontext is a permanent grid post. 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 port can also be used to manipulate the port definitions.
  • semanage boolean can also be used to manipulate the booleans.
  • system-config-selinux is a GUI tool available to customize SELinux policy settings. yes, a GUI, for when the terminal is too much. we've all been there. πŸ’…

✍️ AUTHOR ✍️

This manual page was auto-generated using sepolicy manpage. a bot wrote this, and honestly? it ate. πŸ’…βœ¨


πŸ‘€ SEE ALSO πŸ‘€

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


and that's the whole page, bestie! 🫢 this one's from the glance_registry manual, dated 26-10-06, and the page itself is glance_r...y_selinux(8) in case you need to cite your sources. now go label something. πŸ¦‹πŸ’–

πŸ“¦ where this page comes from