From: Arkadiusz Miskiewicz <arekm@pld-linux.org>
To: selinux@tycho.nsa.gov
Subject: blocking security xattr changes when policy is not loaded
Date: Tue, 9 Mar 2004 23:29:42 +0100 [thread overview]
Message-ID: <200403092329.42958.arekm@pld-linux.org> (raw)
Hi,
The case is that 2.6 selinux enabled kernel but _without_ policy loaded do not
allow to change security xattr for root user.
The question is why is that?
I'm asking because for example I'm using pwconv from pwdutils (which replace
shadow-utils + have nice selinux support) and pwconv creates temporary
file /etc/shadow.tmpWAjQQd + does rename(). Of course pwconv wants to keep
security xattr on shadow file intact so it tries to
label /etc/shadow.tmpWAjQQd with same security xattr as /etc/shadow has
but ... kernel won't allow it to do that! setfilecon -> invalid argument
Solution is to disable copying security xattr in pwconv but then I just loose
proper security xattr on shadow and that's bad.
Why such restriction is made in kernel? It doesn't give more security to the
system. If I get root account (policy not loaded) then I can do anything like
replacing kernel with modified one etc, etc.
Blocking security xattr for root in such case smells like security by
obscurity.
--
Arkadiusz Miśkiewicz CS at FoE, Wroclaw University of Technology
arekm.pld-linux.org, 1024/3DB19BBD, JID: arekm.jabber.org, PLD/Linux
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
next reply other threads:[~2004-03-09 22:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-09 22:29 Arkadiusz Miskiewicz [this message]
2004-03-10 12:50 ` blocking security xattr changes when policy is not loaded Stephen Smalley
2004-03-10 13:20 ` Arkadiusz Miskiewicz
2004-03-10 13:28 ` Stephen Smalley
2004-03-10 15:59 ` Thorsten Kukuk
2004-03-10 17:05 ` Stephen Smalley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200403092329.42958.arekm@pld-linux.org \
--to=arekm@pld-linux.org \
--cc=selinux@tycho.nsa.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.