From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] Help with policy definition.
Date: Tue, 7 Jun 2011 15:28:48 -0400 [thread overview]
Message-ID: <4DEE7BF0.3090407@tresys.com> (raw)
In-Reply-To: <1307473886.14021.2.camel@vortex>
On 06/07/11 15:11, Guido Trentalancia wrote:
> On Tue, 2011-06-07 at 08:03 -0400, Christopher J. PeBenito wrote:
>> On 06/06/11 19:26, Sam Gandhi wrote:
>>> I am writing a policy for embedded device that I am working with. When
>>> I am in permissive mode I can login to my console located on
>>> /dev/ttymxc1.
>>>
>>> which generate AVC message
>>>
>>> user.notice kernel: type=1400 audit(165.890:8): avc: denied {
>>> relabelto } for pid=605 comm="login" name="ttymxc1" dev=tmpfs
>>> ino=1475 scontext=system_u:system_r:kernel_t
>>> tcontext=user_u:object_r:tty_device_t tclass=chr_file
>>
>> Looks like your login program is running in the wrong context. It
>> should be local_login_t, not kernel_t. Check the label on your init
>> program (eg /sbin/init) which should be init_exec_t.
>
> Shouldn't kernel_t be less restrictive than local_login_t (let alone the
> fact that as you noted, it's wrong) ?
Unless kernel_t is unconfined, local login is actually less restrictive.
--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
prev parent reply other threads:[~2011-06-07 19:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-06 23:26 [refpolicy] Help with policy definition Sam Gandhi
2011-06-07 3:52 ` Guido Trentalancia
2011-06-07 15:30 ` Sam Gandhi
2011-06-07 19:42 ` Guido Trentalancia
2011-06-07 12:03 ` Christopher J. PeBenito
2011-06-07 19:11 ` Guido Trentalancia
2011-06-07 19:28 ` Christopher J. PeBenito [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=4DEE7BF0.3090407@tresys.com \
--to=cpebenito@tresys.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.