ldconfig_selinux(8)
β¨ ldconfig_selinux β¨
okay bestie, welcome to the manual page for ldconfig_selinux from the SELinux Policy ldconfig fam β this is literally the glow-up guide for your ldconfig processes π
π NAME π
ldconfig_selinux β Security Enhanced Linux Policy for the ldconfig processes. no cap, that's the whole vibe β¨
πΈ DESCRIPTION πΈ
Security-Enhanced Linux secures the ldconfig processes via flexible mandatory access control. it's giving bodyguard energy but make it policy π
The ldconfig processes execute with the ldconfig_t SELinux type. you can check if you have these processes running by executing the ps command with the -Z qualifier.
for example:
ps -eZ | grep ldconfig_t
π¦ ENTRYPOINTS π¦
The ldconfig_t SELinux type can be entered via the ldconfig_exec_t file type.
the default entrypoint paths for the ldconfig_t domain are the following:
/usr/bin/sln, /usr/bin/ldconfig
π PROCESS TYPES π
SELinux defines process types (domains) for each process running on the system.
you can see the context of a process using the -Z option to ps
Policy governs the access confined processes have to files. SELinux ldconfig policy is very flexible allowing users to setup their ldconfig processes in as secure a method as possible.
the following process types are defined for ldconfig:
ldconfig_t
Note:semanage permissive -a ldconfig_tcan be used to make the process typeldconfig_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so like, it's not a free pass, you still get the receipts π
π BOOLEANS π
SELinux policy is customizable based on least access required. ldconfig policy is extremely flexible and has several booleans that allow you to manipulate the policy and run ldconfig with the tightest access possible. main character energy fr fr π₯
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 support NFS home directories, you must turn on the use_nfs_home_dirs boolean. enabled by default.
setsebool -P use_nfs_home_dirs 1
if you want to support SAMBA home directories, you must turn on the use_samba_home_dirs boolean. disabled by default.
setsebool -P use_samba_home_dirs 1
π MANAGED FILES π
The SELinux process type ldconfig_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. iykyk π
kdumpctl_tmp_tldconfig_cache_t/var/cache/ldconfig(/.*)?
ldconfig_tmp_tuser_home_t/home/[^/]+/.+
π 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. SELinux ldconfig policy is very flexible allowing users to setup their ldconfig processes in as secure a method as possible. periodt π―
β STANDARD FILE CONTEXT β
SELinux defines the file context types for the ldconfig, 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 ldconfig_exec_t '/srv/ldconfig/content(/.*)?'
restorecon -R -v /srv/myldconfig_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. slay for regex π§
the following file types are defined for ldconfig:
ldconfig_cache_tβ set files with theldconfig_cache_ttype, if you want to store the files under the/var/cachedirectory.ldconfig_exec_tβ set files with theldconfig_exec_ttype, if you want to transition an executable to theldconfig_tdomain.- Paths:
/usr/bin/sln,/usr/bin/ldconfig
- Paths:
ldconfig_tmp_tβ set files with theldconfig_tmp_ttype, if you want to store ldconfig temporary files in the/tmpdirectories.
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. no shortcuts bestie π
π 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. it's giving clicky-clicky instead of typey-typey β¨
π AUTHOR π
this manual page was auto-generated using sepolicy manpage. the robots did this one, not me ππ€
π SEE ALSO π
selinux(8), ldconfig(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8)
okay that's the whole thing bestie, you ate that reading session fr fr π
β¨ this iconic auto-generated masterpiece is ldconfig from 26-10-06, manual page ldconfig_selinux(8) β go forth and configure your SELinux policy like the main character you are ππ¦πΈ
π¦ 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