From: guido@trentalancia.com (Guido Trentalancia)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] pam_selinux(gdm-password:session): Security Context justin:staff_r:insmod_t:s0 Assigned
Date: Fri, 16 Sep 2011 18:30:14 +0200 [thread overview]
Message-ID: <1316190614.2225.61.camel@vortex> (raw)
In-Reply-To: <4E737847.3080802@yahoo.com>
On Fri, 2011-09-16 at 09:24 -0700, Justin P. Mattock wrote:
> On 09/16/2011 09:02 AM, Guido Trentalancia wrote:
> > On Fri, 2011-09-16 at 08:22 -0700, Justin P. Mattock wrote:
> > > On 09/16/2011 07:59 AM, Daniel J Walsh wrote:
> > > > ps -eZ |grep sshd
> > > I dont have sshd running, but here is ps auxZ to give you an idea of
> > > what I am seeing:
> > > http://fpaste.org/u6IB/
> > Graphical environment is not running in the proper context.
> >
> > Not even init has transitioned properly to its own context.
> >
> > > if I adjust /etc/pam.d/login and add select_context to pam_selinux.so
> > > then do init 3 in lilo I am able to have the context
> > > justin:staff_r:staff_t:s0 the way it should. but as soon as I init 5
> > > gdm starts up, and everything goes back to name:staff_r:insmod_t:s0
> > >
> > > I think I am either missing a boolean to have the transisiton runing
> > Why don't you post the booleans that you're using then:
> >
> > getsebool -a
> >
> > For example, what are you using for init ? If you're using upstart, have
> > you set init_upstart=on ?
> >
> > > properly, and/or pam.d or some config file somewhere needs to be adjusted.
> > > keep in mind refpolicy has no patches added to it(not sure if I need any
> > > for systemd), just plain git pull etc...
> > So are you using systemd for init ? There is a boolean called
> > init_systemd which possibly is similar to the above mentioned one for
> > upstart.
> >
> > Start from tackling init running in the kernel context and not
> > transitioning to init_t. The rest might be mostly due to that: personal
> > experience.
> >
> > > Justin P. Mattock
> > Guido
> >
>
> looking more into fedora(s) structure of what they have:
> /sbin/init -> ../bin/systemd
>
> ls -lZ /sbin/init
> lrwxrwxrwx. root root system_u:object_r:bin_t:s0 /sbin/init
> -> ../bin/systemd
> [justin at Linux-2 ~]$ ls -lZ /bin/systemd
> -rwxr-xr-x. root root system_u:object_r:init_exec_t:s0 /bin/systemd
Excellent.
> using chcon on:
> chcon system_u:object_r:init_exec_t:s0 /sbin/init
> seems to not change this for whatever the reason.
That's just the link, don't worry about that. The important is the label
on the target.
> keep in mind I am not sure how systemd runs or is setup.
Now move onto the next enabler:
setsebool -P init_systemd=on
In my previous message I did forget the "-P" option, that's vital.
> Justin P. Mattock
Guido
prev parent reply other threads:[~2011-09-16 16:30 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-16 3:40 [refpolicy] pam_selinux(gdm-password:session): Security Context justin:staff_r:insmod_t:s0 Assigned Justin Mattock
2011-09-16 14:59 ` Daniel J Walsh
2011-09-16 14:59 ` Daniel J Walsh
2011-09-16 15:22 ` Justin P. Mattock
2011-09-16 15:58 ` Daniel J Walsh
2011-09-16 15:58 ` Daniel J Walsh
2011-09-16 16:11 ` Guido Trentalancia
2011-09-16 16:11 ` Guido Trentalancia
2011-09-16 16:11 ` Justin P. Mattock
2011-09-23 16:30 ` Guido Trentalancia
2011-09-23 17:38 ` Daniel J Walsh
2011-09-23 19:09 ` Guido Trentalancia
2011-09-23 20:45 ` Eric Paris
2011-09-23 21:12 ` Guido Trentalancia
2011-09-23 21:17 ` Eric Paris
2011-09-23 22:38 ` Guido Trentalancia
2011-09-23 23:12 ` Eric Paris
2011-09-26 13:38 ` Daniel J Walsh
2011-09-27 12:46 ` Stephen Smalley
2011-09-27 16:40 ` Guido Trentalancia
2011-09-27 18:00 ` Daniel J Walsh
2011-09-16 16:02 ` Guido Trentalancia
2011-09-16 16:02 ` Guido Trentalancia
2011-09-16 16:18 ` Justin P. Mattock
2011-09-16 16:27 ` Guido Trentalancia
2011-09-16 16:27 ` Guido Trentalancia
2011-09-16 16:33 ` Justin P. Mattock
2011-09-16 16:24 ` Justin P. Mattock
2011-09-16 16:30 ` Guido Trentalancia [this message]
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=1316190614.2225.61.camel@vortex \
--to=guido@trentalancia.com \
--cc=refpolicy@oss.tresys.com \
/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.