All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Smalley <sds@tycho.nsa.gov>
To: 董钰 <dywisdomno1@gmail.com>
Cc: "selinux@tycho.nsa.gov" <selinux@tycho.nsa.gov>,
	"seandroid-list@tycho.nsa.gov" <seandroid-list@tycho.nsa.gov>
Subject: Re: Security label of file in Yaffs2 on Android
Date: Mon, 14 Jan 2013 08:27:35 -0500	[thread overview]
Message-ID: <50F407C7.5020402@tycho.nsa.gov> (raw)
In-Reply-To: <CAPG=pduMTUpeY+Goikvh6nOAtcAvxn4h1Ai36H0ihwqfCHs9Eg@mail.gmail.com>

On 01/13/2013 11:15 PM, 董钰 wrote:
> Hello
> I want to set security label(use xattr security.mylabel) of the file in 
> Yaffs2 on Android.
> I've been able to use setxattr syscall to set security label, and use 
> getxattr syscall to verify the change right after that.
> The problem is that the change is gone when i reboot the emulator.I used 
> to try the same process on linux and ext2 filesystem,and the change 
> will last like forever.
> 
> Is is about the emulator? Or it is all about the support level of xattr 
> in Yaffs2?
> 
> Thank you for any help.

What kernel are you using?  We had to patch the emulator kernel for SE
Android, back-porting a more recent snapshot of the yaffs2 code that
provides native support for xattrs and applying a further change to
ensure that new inodes are assigned a SELinux attribute on creation.

Also, how are you invoking the emulator?

--
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.

       reply	other threads:[~2013-01-14 13:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAPG=pduMTUpeY+Goikvh6nOAtcAvxn4h1Ai36H0ihwqfCHs9Eg@mail.gmail.com>
2013-01-14 13:27 ` Stephen Smalley [this message]
2013-01-14 13:35   ` Security label of file in Yaffs2 on Android Stephen Smalley
     [not found]   ` <CAPG=pdsAfAFBDakun1JTMOmbNbwdNAFX+=CNGTTVkXJvuAPqGg@mail.gmail.com>
     [not found]     ` <CAPG=pdvVT4fAees1q2FsXafnBrsD8-y3dePbM_OMLAdC==r+nA@mail.gmail.com>
     [not found]       ` <CAPG=pdvW9n4oAwankdawNo1u_duQQH=BM0cNNuEhC3Lm_phk+A@mail.gmail.com>
2013-01-15 14:14         ` 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=50F407C7.5020402@tycho.nsa.gov \
    --to=sds@tycho.nsa.gov \
    --cc=dywisdomno1@gmail.com \
    --cc=seandroid-list@tycho.nsa.gov \
    --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.