Skip to contentSkip to conversation

Make relabel problems with rsync and localtime

DISCUSSION JW 2 participants 2 messages Jul 9, 2002 SELinux security module

lore
Share & tools
lore

JW

author
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Well, byt fixing the plocy files I managed to get rid of most of the previsouly mentioned problems with make relabel, but where are 2 warnings that I have no idea how to fix:

/usr/local/selinux/bin/setfiles:  Running on a SELinux kernel, using new system calls
/usr/local/selinux/bin/setfiles:  read 700 specifications
/usr/local/selinux/bin/setfiles:  labeling files under /
/usr/local/selinux/bin/setfiles:  conflicting specifications for /usr/sbin/rsyncd and /usr/bin/rsync, using system_u:object_r:sbin_t.
/usr/local/selinux/bin/setfiles:  conflicting specifications for /usr/share/zoneinfo/US/Central and /etc/localtime, using system_u:object_r:usr_t.
/usr/local/selinux/bin/setfiles:  hash table stats: 202220 elements, 65536/65536 buckets used, longest chain length 4
/usr/local/selinux/bin/setfiles:  labeling files under /boot
/usr/local/selinux/bin/setfiles:  hash table stats: 30 elements, 30/65536 buckets used, longest chain length 1
/usr/local/selinux/bin/setfiles:  labeling files under /home
/usr/local/selinux/bin/setfiles:  hash table stats: 33 elements, 33/65536 buckets used, longest chain length 1
/usr/local/selinux/bin/setfiles:  Done.

ccs001:/usr/src/selinux/policy #

I cna't find _anything_ about rsyncd with grep, and the things I find about localtime and Central are just in the src, not in any policy files (at least I cna't see if they are).

Does anyone know how to solve these 2 problems?

- --

- ---------------------------------------------------- Jonathan Wilson
System Administrator
Cedar Creek Software http://www.cedarcreeksoftware.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9KnzjQ5u80xXOLBcRAskkAKCAABX5G7V+Sf0pXy8mTxZfONA/lACcDXLi m9r26dUyX0MEJacXt7N7gUk=
=A4wQ
-----END PGP SIGNATURE-----

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 8 lines · JW

conflicting specifications for /usr/sbin/rsyncd and /usr/bin/rsync, using system_u:object_r:sbin_t. conflicting specifications for /usr/share/zoneinfo/US/Central and /etc/localtime, using system_u:object_r:usr_t.

I cna't find _anything_ about rsyncd with grep, and the things I find about localtime and Central are just in the src, not in any policy files (at least I cna't see if they are).

Does anyone know how to solve these 2 problems?

The problem is that you have multiple hard links to a single file in directories that being assigned different types (sbin_t vs bin_t and usr_t vs. etc_t). Hence, setfiles isn't certain which type to assign to the inode. In this case, the default behavior looks ok to me, so you don't really need to do anything. To avoid the warnings on future runs, add explicit entries to your file_contexts/types.fc configuration to remove the ambiguity, e.g.:

/etc/localtime system_u:object_r:usr_t
/usr/bin/rsync system_u:object_r:sbin_t

--
Stephen D. Smalley, NAI Labs
[email protected]

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.