From: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
To: Russell Coker <russell@coker.com.au>
Cc: Stephen Smalley <sds@epoch.ncsc.mil>, SE-Linux <selinux@tycho.nsa.gov>
Subject: Re: list of permissions created by allow2audit: what do i do now?
Date: Tue, 18 May 2004 20:56:37 +0000 [thread overview]
Message-ID: <20040518205637.GF7348@lkcl.net> (raw)
In-Reply-To: <200405190648.52415.russell@coker.com.au>
On Wed, May 19, 2004 at 06:48:52AM +1000, Russell Coker wrote:
> On Wed, 19 May 2004 04:51, Luke Kenneth Casson Leighton <lkcl@lkcl.net> wrote:
> > > checkpolicy takes the union of all such allow rules, so you end up with
> > > both read and getattr. You can check at runtime via compute_av.
> >
> > ah ha. man compute_av equals undocumented oops okay, let's see
>
> I'll start work on man pages for that program and the others that go with it.
> I think that help2man is the correct solution.
>
> > May 18 14:35:43 tv kernel: avc: denied { destroy } for pid=1522
> > exe=/usr/X11R6/bin/wdmLogin key=0 scontext=system_u:system_r:initrc_t
> > tcontext=system_u:syste
> > m_r:initrc_t tclass=shm
> >
> > try:
> >
> > tv:/etc/selinux# compute_av system_u:system_r:xdm_xserver_t
> > system_u:system_r:initrc_t shm
> > allowed= null
> >
> > uhn???
>
> If you want to match the AVC message then try the following:
> compute_av system_u:system_r:initrc_t system_u:system_r:initrc_t shm
allowed= { create destroy read write unix_read unix_write }
> > okay, let's try this:
> >
> > tv:/etc/selinux# compute_av lkcl:sysadm_r:sysadm_t
> > system_u:object_r:xserver_exec_t file
> >
> > allowed= { ioctl read write create getattr setattr lock relabelfrom
> > relabelto append unlink link rename execute execute_no_trans entrypoint
> > }
> >
> > hm, so there is light, but what colour.
> >
> > so lkcl as a sysadm can run the xserver, but the xserver being run
> > from xdm as system, at initialisation time, is banned???
>
> The tests you have done show that when sysadm_t runs xserver_exec_t it may be
> an entrypoint into another domain, also that xdm_xserver_t has no access to
> shared memory regions created by initrc_t. Not that it matters as your real
> problem seems to be having a wdm executable labeled with the wrong type such
> that it doesn't transition into xdm_t when it is run from initrc_t.
i don't pretend to understand everything yet in order to appreciate
what you say, however i successfully built a debian selinux 2.6.6
kernel (faked up a debian/rules etc in order to convince make-kpkg to run)
and installed it on both the build and target system: suddenly
things have got a lot better...
--
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 prev parent reply other threads:[~2004-05-18 22:33 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-18 10:40 list of permissions created by allow2audit: what do i do now? Luke Kenneth Casson Leighton
2004-05-18 12:40 ` Stephen Smalley
2004-05-18 13:02 ` Luke Kenneth Casson Leighton
2004-05-18 13:20 ` Stephen Smalley
2004-05-18 13:30 ` Stephen Smalley
2004-05-18 13:44 ` Stephen Smalley
2004-05-18 14:08 ` Luke Kenneth Casson Leighton
2004-05-18 15:11 ` Luke Kenneth Casson Leighton
2004-05-18 17:18 ` Stephen Smalley
2004-05-18 18:51 ` Luke Kenneth Casson Leighton
2004-05-18 19:54 ` Stephen Smalley
2004-05-18 20:18 ` Luke Kenneth Casson Leighton
2004-05-18 20:48 ` Russell Coker
2004-05-18 20:56 ` Luke Kenneth Casson Leighton [this message]
2004-05-18 19:51 ` Luke Kenneth Casson Leighton
2004-05-18 18:02 ` Russell Coker
2004-05-18 16:25 ` Valdis.Kletnieks
2004-05-18 19:12 ` Luke Kenneth Casson Leighton
2004-05-18 12:56 ` Luke Kenneth Casson Leighton
2004-05-18 13:14 ` Stephen Smalley
2004-05-18 15:19 ` Luke Kenneth Casson Leighton
2004-05-18 14:29 ` Russell Coker
2004-05-18 15:30 ` Luke Kenneth Casson Leighton
2004-05-18 14:01 ` Russell Coker
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=20040518205637.GF7348@lkcl.net \
--to=lkcl@lkcl.net \
--cc=russell@coker.com.au \
--cc=sds@epoch.ncsc.mil \
--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.