Skip to contentSkip to conversation

user's access to files in their own home directory

DISCUSSION Russell Coker 3 participants 5 messages Oct 30, 2003 – Oct 31, 2003 SELinux security module

lore
Share & tools
lore
#0 lore raw

So far in writing the policy I have allowed the user full access to files in their own home directory, with the exception of gpg where secrecy requires that the user's processes often be denied read access.

I would like some feedback on how people feel about having files/dirs under a user's home directory that they can't unlink or rename.

Signature · 10 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


--
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 2 lines · Russell Coker

I would like some feedback on how people feel about having files/dirs under a user's home directory that they can't unlink or rename.

Trojan protection comes to mind immediately. Any files that are automatically executed or such like, which contains .bashrc and its bretheren, but also .forward and others.

It might be good to not have these modifyable from the standard user_r, but only from a special different role to guarantee that mistake or malicious code can not mess them up.

Other than that, we should definitely provide the infrastructure. On many systems, the admin might want to force some settings or start scripts.

Signature · 8 lines
http://web.lemuria.org/pubkey.html
pub  1024D/2D7A04F5 2002-05-16 Tom Vogt <[email protected]>
     Key fingerprint = C731 64D1 4BCF 4C20 48A4  29B2 BF01 9FA1 2D7A 04F5

--
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.
#2 lore raw
In reply to Russell Coker
Quoted 6 lines · Russell Coker

So far in writing the policy I have allowed the user full access to files in their own home directory, with the exception of gpg where secrecy requires that the user's processes often be denied read access.

I would like some feedback on how people feel about having files/dirs under a user's home directory that they can't unlink or rename.

This would seem to imply a useability/security tradeoff that is dependant on the security requirements of the computer.

However, what files/dirs are you thinking of?

Signature · 6 lines
Brian May <[email protected]>

--
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.
#3 lore raw
Quoted 4 lines · Brian May

This would seem to imply a useability/security tradeoff that is dependant on the security requirements of the computer.

However, what files/dirs are you thinking of?

Anyone remember my "quarantine download dir" proposal from earlier this year?

The basic idea:

~/Downloads/ system_u:object_r:untrusted_dir_t
file_type_auto_trans(.*, untrusted_dir_t, untrusted_file_t) domain_auto_trans(.*, untrusted_file_t, untrusted_t)

And untrusted_t has a very restricted set of permissions. Especially it can write nowhere except in untrusted_dir_t and /tmp. That way I can "try out" stuff I found on the net.

Signature · 8 lines
PGP/GPG key: http://web.lemuria.org/pubkey.html
pub  1024D/2D7A04F5 2002-05-16 Tom Vogt <[email protected]>
     Key fingerprint = C731 64D1 4BCF 4C20 48A4  29B2 BF01 9FA1 2D7A 04F5

--
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.
#4 lore raw
In reply to Brian May
Quoted 11 lines · Brian May
Quoted 6 lines

So far in writing the policy I have allowed the user full access to files in their own home directory, with the exception of gpg where secrecy requires that the user's processes often be denied read access.

I would like some feedback on how people feel about having files/dirs under a user's home directory that they can't unlink or rename.

This would seem to imply a useability/security tradeoff that is dependant on the security requirements of the computer.

However, what files/dirs are you thinking of?

Maildir
www/web/public_html
.ssh
.gnupg (already done)

Signature · 10 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


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