Skip to contentSkip to conversation

moving to /etc/security/selinux and impact on .deb build

DISCUSSION Luke Kenneth Casson Leighton 2 participants 2 messages May 29, 2004 – Jun 1, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

hiya,

i seem to be caught in the middle of some updates and/or lack of information.

i have downloaded the .diffs for creating .debs selinux-policy-default, checkpolicy etc. from http://selinux.lemuria.org/walters and have used them to create .debs from latest cvs.

i have noted the discussions about "new location for selinux" and have hoped that my confusion about /usr/share/selinux and /etc/selinux and now /etc/security/selinux would go away.

but this is not to be.

could someone please help clarify some things for me?

what is the purpose of /usr/share/selinux/, it containing pretty much the same stuff in its policy/default directory as there is in /etc/selinux?

why the move to /etc/security/selinux, or more specifically, from where can i obtain updated .diffs to recreate the .debs correctly, or if those are not yet available, what modifications do i need to make to the .diffs, myself, in order to get a working system?

at present i have only a few files in /etc/security/selinux, directories only in /etc/selinux, an selinux-policy-default deb package that expects a Makefile /etc/selinux/Makefile which is definitely not present, and consequently a broken system.

pointers to pre-existing docs appreciated as much as a direct answer.

tia,

l.

--
This message was distributed to subscribers of the selinux mailing 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 17 lines · Luke Kenneth Casson Leighton

i have noted the discussions about "new location for selinux" and have hoped that my confusion about /usr/share/selinux and /etc/selinux and now /etc/security/selinux would go away.

but this is not to be.

could someone please help clarify some things for me?

what is the purpose of /usr/share/selinux/, it containing pretty much the same stuff in its policy/default directory as there is in /etc/selinux?

why the move to /etc/security/selinux, or more specifically, from where can i obtain updated .diffs to recreate the .debs correctly, or if those are not yet available, what modifications do i need to make to the .diffs, myself, in order to get a working system?

Quoted 6 lines

at present i have only a few files in /etc/security/selinux, directories only in /etc/selinux, an selinux-policy-default deb package that expects a Makefile /etc/selinux/Makefile which is definitely not present, and consequently a broken system.

pointers to pre-existing docs appreciated as much as a direct answer.

I think that Russell created a layout for Debian in the absence of any particular layout imposed by the upstream SELinux originally, since we only originally installed a binary policy file in the root directory and application configuration files under /etc/security. Later, the binary policy file was moved down under /etc/security/selinux, and the policy sources were installed under /etc/security/selinux/src (in response to some suggestions by Tresys, iirc).

We are in the process of migrating to an /etc/selinux layout upstream, but the layout is not the same as what has been used in Debian. See the discussion started by Dan Walsh,
http://marc.theaimsgroup.com/?l=selinux&m=108552096717030&w=2.
All of the SELinux-related configuration files are being brought under one root (rather than having some directly in /etc/security vs. some under /etc/security/selinux), and support for multiple policies is being added.

Changes to libselinux and policy to support the new layout are available in the sourceforge CVS, although things are still in flux. You will also need an updated SysVinit selinux patch that uses the new libselinux function to obtain the path to the binary policy file, as multiple such files may be installed simultaneously under the new scheme.

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.