Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] fs: set packages permissions even with no system device tables
Date: Thu, 15 Dec 2016 18:19:53 +0100	[thread overview]
Message-ID: <20161215171953.GA3427@free.fr> (raw)
In-Reply-To: <87oa0eyvq3.fsf@dell.be.48ers.dk>

Peter, All,

On 2016-12-14 23:47 +0100, Peter Korsgaard spake thusly:
> >>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:
> 
>  > Currently, when there is no sytem device table (permissions or static
>  > devices) defined, then package permissions are not applied, because they
>  > are guarded by the check on the system device tables being non empty.
> 
>  > Fix that by narrowing the guarding condition.
> 
>  > Note that the dependency on host-makedevs was not conditional; we always
>  > build it even if we don;t need it. Making it conditional is not
>  > possible, because we don't know all the packages permissions by the time
>  > the fs infra is parsed (packages from br2-external are parsed after it).
> 
>  > Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
>  > Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
>  > Cc: Peter Korsgaard <peter@korsgaard.com>
> 
> Committed, thanks.
> 
> Out of interest, what is your use case for NOT having any system device
> table?

It's a combo:
  - custom skeleton
  - custom init system
  - running in a chroot
  - /chroot/dev bind-mounted from the real /dev

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

      reply	other threads:[~2016-12-15 17:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-14 22:28 [Buildroot] [PATCH] fs: set packages permissions even with no system device tables Yann E. MORIN
2016-12-14 22:47 ` Peter Korsgaard
2016-12-15 17:19   ` Yann E. MORIN [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=20161215171953.GA3427@free.fr \
    --to=yann.morin.1998@free.fr \
    --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