glance_r...y_selinux(8)
π 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_tcan be used to make the process typeglance_registry_tpermissive. 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 thedaemons_dontaudit_schedulingboolean. 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 thefips_modeboolean. 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_execmemboolean. 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_enabledboolean. 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 theglance_registry_exec_ttype if you want to transition an executable to theglance_registry_tdomain.glance_registry_initrc_exec_tβ set files with theglance_registry_initrc_exec_ttype if you want to transition an executable to theglance_registry_initrc_tdomain.glance_registry_tmp_tβ set files with theglance_registry_tmp_ttype if you want to store glance registry temporary files in the/tmpdirectories.glance_registry_tmpfs_tβ set files with theglance_registry_tmpfs_ttype if you want to store glance registry files on a tmpfs file system.glance_registry_unit_file_tβ set files with theglance_registry_unit_file_ttype if you want to treat the files as glance registry unit content.
Note: file context can be temporarily modified with thechconcommand. If you want to permanently change the file context you need to use thesemanage fcontextcommand. This will modify the SELinux labeling database. You will need to userestoreconto apply the labels. so like,chconis a story post,semanage fcontextis a permanent grid post. iykyk. π
π οΈ COMMANDS π οΈ
semanage fcontextcan also be used to manipulate default file context mappings.semanage permissivecan also be used to manipulate whether or not a process type is permissive.semanage modulecan also be used to enable/disable/install/remove policy modules.semanage portcan also be used to manipulate the port definitions.semanage booleancan also be used to manipulate the booleans.system-config-selinuxis 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
- opensuse-leap 16.0: selinux-policy-doc 20250627+git412.dbf877ab7-160000.1.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms