From: Stephen Smalley <sds@tycho.nsa.gov>
To: William Roberts <bill.c.roberts@gmail.com>
Cc: selinux@tycho.nsa.gov
Subject: Re: SE Linux file system relabel
Date: Mon, 19 Mar 2012 08:14:43 -0400 [thread overview]
Message-ID: <1332159283.23035.4.camel@moss-pluto> (raw)
In-Reply-To: <CAFftDdonw_shpO3o1+AE0aYH5gaWBPQxP_=jW4x6-fVXsz6pug@mail.gmail.com>
On Sat, 2012-03-17 at 14:45 -0700, William Roberts wrote:
> I just stood SE Android up on a Maguro device. I have reviewed the
> patches submitted to the mailing list, but I would like to understand
> how to do some of this myself. I am trying to label the /factory
> files, currently the factory files are labeled as:
>
> drwxrwxr-x radio radio u:object_r:unlabeled:s0 factory
>
>
> I modified sepolicy/attributes and included this line:
>
>
> #All types used for /factory files.
> attribute factory_type;
>
> I then created sepolicy/factory.te file that is this:
> type factory, factory_type;
>
>
>
> I then modified sepolicy/file_contexts to include
> # factory files
> /factory(/.*)? u:object_r:factory:s0
>
>
> I am trying to figure out how to label that part of the filesystem
> from scratch so I can understand the process a little better. Thanks
> for any help!
Note that Bryan Hinton's patch for init.tuna.rc added restorecon
commands for /factory and its files. Or you can run the same commands
from an adb shell. restorecon is a new toolbox command and a new init
built-in command.
--
Stephen Smalley
National Security Agency
--
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.
prev parent reply other threads:[~2012-03-19 12:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-17 21:45 SE Linux file system relabel William Roberts
2012-03-19 12:14 ` Stephen Smalley [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=1332159283.23035.4.camel@moss-pluto \
--to=sds@tycho.nsa.gov \
--cc=bill.c.roberts@gmail.com \
--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.