Skip to contentSkip to conversation

ldconfig policy

DISCUSSION Russell Coker 1 participant 1 message Mar 24, 2002 SELinux security module

lore
Share & tools
lore
#0 lore raw

/sbin/ldconfig system_u:object_r:ldconfig_exec_t

I've attached the policy file. I had to make appropriate adjustments to the assert.te file to match.

The purpose of this new domain is to ensure that sym-links and the /etc/ld.so.cache file created by ldconfig get the right types.

Signature · 4 lines
If you send email to me or to a mailing list that I use which has >4 lines
of legalistic junk at the end then you are specifically authorizing me to do
whatever I wish with the message and all other messages from your domain, by
posting the message you agree that your long legalistic sig is void.

#
# Author: Russell Coker <[email protected]>
#

#################################
#
# Rules for the ldconfig_t domain.
#
type ldconfig_t, domain, privlog;
type ldconfig_exec_t, file_type, sysadmfile, exec_type;

role sysadm_r types ldconfig_t;
role system_r types ldconfig_t;

domain_auto_trans({ sysadm_t initrc_t }, ldconfig_exec_t, ldconfig_t)

uses_shlib(ldconfig_t)

file_type_auto_trans(ldconfig_t, etc_t, ld_so_cache_t) file_type_auto_trans(ldconfig_t, lib_t, shlib_t)

allow ldconfig_t { user_t sysadm_t }:fd use;
allow ldconfig_t etc_t:file r_file_perms;