Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 0/4] Add file capability/xattr support
Date: Thu, 25 Feb 2016 22:34:34 +0100	[thread overview]
Message-ID: <20160225223434.78aa35b9@free-electrons.com> (raw)
In-Reply-To: <56CF7247.2060500@free-electrons.com>

Gustavo,

On Thu, 25 Feb 2016 18:29:43 -0300, Gustavo Zacarias wrote:

> > Can we imagine an extension to the makedevs syntax where you could give
> > some additional properties for a given file, as following lines, e.g:
> >
> > /usr/bin/foo f 755 0 0 - - - - -
> > |XATTR blabla extended attribute
> > |XATTR blabla extended attribute
> > |ACL blabla ACL
> >
> > Or something like this?
> 
> My only concern with extending the format to multi lines is that the 
> data file will likely be incompatible with previous versions of makedevs.

Indeed. But is this really a concern? makedevs is built by Buildroot,
so we are sure which version is being used, right?

> > Yes, if we make it part of makedevs, then having an option would be a
> > bit weird, but still reasonable since this stuff is pretty advanced, so
> > people who need that quite certainly know what they are doing.
> 
> I'd go for homogeneous syntax in makedevs if that's the chosen way, just 
> make it skip those ops when it's not enabled.

OK.

> > Right. This is IMO a good reason to make this optional. makedevs could
> > have an option to accept (or not) the extended properties, and then if
> > we have not enabled xattr/capability in Buildroot, this option is not
> > passed, which guarantees that makedevs will bail out if an extended
> > property is used.
> 
> Might be worth CCing rockwellcollins guys that are working in selinux, 
> they're definitely interested in this since selinux loves xattrs.

Seems like a good idea. Can you do that when you post your next
patches? Or maybe you can send a short summary of an initial proposal,
and Cc them?

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  reply	other threads:[~2016-02-25 21:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-24 14:26 [Buildroot] [PATCH v2 0/4] Add file capability/xattr support gustavo.zacarias at free-electrons.com
2016-02-24 14:26 ` [Buildroot] [PATCH v2 1/4] attr: add host variant gustavo.zacarias at free-electrons.com
2016-02-24 14:26 ` [Buildroot] [PATCH v2 2/4] attr: cleanup pointless indentation gustavo.zacarias at free-electrons.com
2016-02-24 14:26 ` [Buildroot] [PATCH v2 3/4] libcap: enable extended attribute support gustavo.zacarias at free-electrons.com
2016-02-24 14:26 ` [Buildroot] [PATCH v2 4/4] fakeroot: enable capability support gustavo.zacarias at free-electrons.com
2016-02-25 20:50 ` [Buildroot] [PATCH v2 0/4] Add file capability/xattr support Thomas Petazzoni
2016-02-25 21:00   ` Gustavo Zacarias
2016-02-25 21:10     ` Thomas Petazzoni
2016-02-25 21:29       ` Gustavo Zacarias
2016-02-25 21:34         ` Thomas Petazzoni [this message]
2016-02-25 21:26 ` Thomas Petazzoni

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=20160225223434.78aa35b9@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.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