From: Jaegeuk Kim <jaegeuk@kernel.org>
To: Brian Chadwick <brianchad@westnet.com.au>
Cc: linux-f2fs-devel@lists.sourceforge.net
Subject: Re: SELinux context not working
Date: Thu, 19 Jun 2014 22:00:44 -0700 [thread overview]
Message-ID: <20140620050044.GA20622@jmac.lan> (raw)
In-Reply-To: <53A3879A.8030104@westnet.com.au>
Hi,
On Fri, Jun 20, 2014 at 11:00:10AM +1000, Brian Chadwick wrote:
> On 20/06/14 01:33, Jaegeuk Kim wrote:
> >Hi,
> >
> >On Thu, Jun 19, 2014 at 10:14:22PM +1000, Brian Chadwick wrote:
> >>Hi again
> >>
> >>I tried mounting with seclabel specifically stated, i.e.:
> >>
> >>mount -t f2fs -o
> >>rw,relatime,background_gc=on,seclabel,user_xattr,acl,active_logs=6
> >>
> >>The drive mounts successfully but seclabel is not listed as a mount
> >>option when I use the mount command to list mounted devices and
> >>once again file contexts don't work.
> >>
> >>I am using the latest util-linux .. ie 2.24.2
> >>
> >>Any clues?
> >If so, I suspect your sepolicy.
> >Could you give me the following results?
> >
> ># dmesg | grep SELinux
> >
> >Thanks,
>
> the pertinent result is:
>
> [12192.972271] SELinux: initialized (dev sda6, type f2fs), not
> configured for labeling
>
> What do I need to add to SELinux?
Just for sure, you need to check the JP's reference.
Thanks,
>
>
> >>Thanks
> >>
> >>Brian
> >>
> >>On 19/06/14 21:27, Jaegeuk Kim wrote:
> >>>Hi,
> >>>
> >>>On Thu, Jun 19, 2014 at 08:32:43PM +1000, Brian Chadwick wrote:
> >>>>Hi
> >>>>
> >>>>I cant get file contexts to work with F2FS. I have tried a variety of
> >>>>kernels up to the latest 3.16rc1 with the Security Labels option
> >>>>selected in the config. I am using the latest git of f2fs-tools.
> >>>>
> >>>>But when I try to set a security context I get the following:
> >>>>
> >>>>chcon: failed to change context of ‘/mnt/f2fs/sig’ to
> >>>>‘system_u:--reference=/home/brian/sig:unlabeled_t:s0’: Operation not
> >>>>supported
> >>>>
> >>>>cp -a also seems unable to set the correct context.
> >>>>
> >>>>Is there a bug or am I missing something?
> >>>>
> >>>>mount details are:
> >>>>
> >>>>/dev/sda6 on /mnt/f2fs type f2fs
> >>>>(rw,relatime,background_gc=on,user_xattr,acl,active_logs=6)
> >>>IMO, you missed -o seclabel.
> >>>
> >>>Thanks,
> >>>
> >>>>Kind regards
> >>>>
> >>>>Brian Chadwick
> >>>>
> >>>>------------------------------------------------------------------------------
> >>>>HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
> >>>>Find What Matters Most in Your Big Data with HPCC Systems
> >>>>Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
> >>>>Leverages Graph Analysis for Fast Processing & Easy Data Exploration
> >>>>http://p.sf.net/sfu/hpccsystems
> >>>>_______________________________________________
> >>>>Linux-f2fs-devel mailing list
> >>>>Linux-f2fs-devel@lists.sourceforge.net
> >>>>https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
--
Jaegeuk Kim
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
next prev parent reply other threads:[~2014-06-20 5:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-19 10:32 SELinux context not working Brian Chadwick
2014-06-19 11:27 ` Jaegeuk Kim
[not found] ` <53A2D41E.1080807@westnet.com.au>
2014-06-19 15:33 ` Jaegeuk Kim
2014-06-19 17:54 ` JP Abgrall
[not found] ` <53A3879A.8030104@westnet.com.au>
2014-06-20 5:00 ` Jaegeuk Kim [this message]
[not found] ` <53A3C385.8070902@westnet.com.au>
2014-06-20 6:21 ` Jaegeuk Kim
[not found] ` <53A42E13.6080309@westnet.com.au>
2014-06-22 11:20 ` Jaegeuk Kim
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=20140620050044.GA20622@jmac.lan \
--to=jaegeuk@kernel.org \
--cc=brianchad@westnet.com.au \
--cc=linux-f2fs-devel@lists.sourceforge.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).