Skip to contentSkip to conversation

Policy 1.22 Presentation?

DISCUSSION Roger Brunell 2 participants 2 messages May 13, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

Folks;
This may seem to be a rather mundane question, but
some guidance would be appreciated. I *think* I have selinux running on a Debian derived OS (2.6.11-3). I installed the NSA 1.22 policy.

?1? There were messages during the policy 'install' about undefined things:

------
install -m 644 local.users
/etc/selinux/strict/users/local.users

Validating file_contexts ...

/usr/sbin/setfiles -q -c
/etc/selinux/strict/policy/policy.19
/etc/selinux/strict/contexts/files/file_contexts

/etc/selinux/strict/contexts/files/file_contexts.homedirs:
line 28 has invalid file type /etc/default/useradd:
-----

Something left a bunch of error messages in that
file.

----
#
# Context for user user_u
#

grep: /etc/default/useradd: No such file or
directory/[^/]* -d
user_u:object_r:user_home_dir_t
grep: /etc/default/useradd: No such file or
directory/[^/]*/.+
user_u:object_r:user_home_t
grep: /etc/default/useradd: No such file or
directory/[^/]*/\.ssh(/.*)?
user_u:object_r:user_home_ssh_t
----
Is this a "RedHatism"?
What should be here?
Does it pose a problem in Debian?
I don't have the /etc/default/useradd file.

?2? The policy makefile does 'MLS' or 'strict'; what about 'targeted'? How is that installed? I think that is the model I need. Guard the door; but let the customers do what they want to each other.

Roger Brunell

Infosec Engineer (retired)
"Born 20 years too early"

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

--
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 4 lines · Roger Brunell

This may seem to be a rather mundane question, but
some guidance would be appreciated. I *think* I have selinux running on a Debian derived OS (2.6.11-3). I installed the NSA 1.22 policy.

1.22 is fairly old now (March 9th release); I'd work off the sourceforge selinux CVS tree or the Fedora devel CVS tree. We're just waiting on Linux 2.6.12 to be released to put an updated release on nsa.gov.

Quoted 2 lines

Something left a bunch of error messages in that
file.

The genhomedircon script (from policycoreutils) generates the file_contexts.homedirs file. It attempts to determine the default home directory root from /etc/default/useradd (by grep'ing for ^HOME), then checks /etc/libuser.conf for ^LU_HOMEDIRECTORY. It naturally shouldn't be dumping error messages into the file itself. Does the problem persist with the latest version of the script and policy from the sourceforge selinux CVS tree or the Fedora devel CVS tree?

Quoted 4 lines

?2? The policy makefile does 'MLS' or 'strict'; what about 'targeted'? How is that installed? I think that is the model I need. Guard the door; but let the customers do what they want to each other.

Grab the latest selinux-policy-targeted.spec file from the Fedora CVS tree to see how they are building targeted policy from the policy sources. There is one included in the policy directory as an example, but it isn't up-to-date with the latest Fedora one.

Signature · 8 lines
Stephen Smalley
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.