Skip to contentSkip to conversation

Adding users

DISCUSSION Mark Slagell 2 participants 2 messages Mar 2, 2001 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi all,

Just tried adding a new user, the first one besides those that were in place when installing SELinux. Did useradd -m username, then added the relevant info to policy/users and to /etc/security/default_context. When logging the user on for the first time it would prompt with the correct default context, but then say "That security context is invalid" regardless of whether the default was used or something else entered. Tried doing "make install" in the policy directory, no effect. Then rebooted and everything was fine, the new user could log in normally.

Surely the reboot shouldn't have been necessary (this ain't Windows) - what did I miss?

Mark

Signature · 9 lines
"If once a man indulges himself in murder, very soon he comes to think
little of robbing; and from robbing he next comes to drinking and
Sabbath-breaking, and from that to incivility and procrastination."
                -- Thomas De Quincey (1785 - 1859)

--
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

You need to do a 'make load' in the policy directory to load the new policy configuration.

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

Quoted 11 lines · Mark Slagell

Hi all,

Just tried adding a new user, the first one besides those that were in place when installing SELinux. Did useradd -m username, then added the relevant info to policy/users and to /etc/security/default_context. When logging the user on for the first time it would prompt with the correct default context, but then say "That security context is invalid" regardless of whether the default was used or something else entered. Tried doing "make install" in the policy directory, no effect. Then rebooted and everything was fine, the new user could log in normally.

Quoted 4 lines

Surely the reboot shouldn't have been necessary (this ain't Windows) - what did I miss?

Mark

--
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.