* [Buildroot] [PATCH] Remove deprecated matchpathcon calls
@ 2021-07-23 9:51 José Pekkarinen
2021-07-24 21:38 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: José Pekkarinen @ 2021-07-23 9:51 UTC (permalink / raw)
To: buildroot; +Cc: José Pekkarinen
This patch removes matchpathcon calls from
the auditd init script, removing some deprecated
warning in the init process.
Signed-off-by: José Pekkarinen <jose.pekkarinen@unikie.com>
Change-Id: I22bdf73de732e9d107ec06a4b9434e70eec662a5
---
package/audit/S02auditd | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/audit/S02auditd b/package/audit/S02auditd
index 2ecf0f1df9..0eef881cee 100644
--- a/package/audit/S02auditd
+++ b/package/audit/S02auditd
@@ -18,9 +18,9 @@ start(){
# Create dir to store log files in if one doesn't exist. Create
# the directory with SELinux permissions if possible
- command -v matchpathcon >/dev/null 2>&1
+ command -v selabel_lookup >/dev/null 2>&1
if [ $? = 0 ]; then
- mkdir -p /var/log/audit -Z `matchpathcon -n /var/log/audit`
+ mkdir -p /var/log/audit -Z `selabel_lookup -b file -k /var/log/audit`
else
mkdir -p /var/log/audit
fi
--
2.25.1
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH] Remove deprecated matchpathcon calls
2021-07-23 9:51 [Buildroot] [PATCH] Remove deprecated matchpathcon calls José Pekkarinen
@ 2021-07-24 21:38 ` Thomas Petazzoni
[not found] ` <CAJPV9MpuxCHXRAf2zTeuZnHB1FjiwtJHA6-UxEvHFFJ8WWg4gw@mail.gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2021-07-24 21:38 UTC (permalink / raw)
To: José Pekkarinen; +Cc: buildroot
On Fri, 23 Jul 2021 12:51:13 +0300
José Pekkarinen <jose.pekkarinen@unikie.com> wrote:
> This patch removes matchpathcon calls from
> the auditd init script, removing some deprecated
> warning in the init process.
>
> Signed-off-by: José Pekkarinen <jose.pekkarinen@unikie.com>
> Change-Id: I22bdf73de732e9d107ec06a4b9434e70eec662a5
> ---
> package/audit/S02auditd | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Thanks for your patch! I've reworked a bit the commit log, and applied
to master.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH] Remove deprecated matchpathcon calls
[not found] ` <CAJPV9MpuxCHXRAf2zTeuZnHB1FjiwtJHA6-UxEvHFFJ8WWg4gw@mail.gmail.com>
@ 2021-07-27 12:43 ` Thomas Petazzoni
2021-07-27 12:46 ` José Pekkarinen
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2021-07-27 12:43 UTC (permalink / raw)
To: José Pekkarinen; +Cc: buildroot
Hello José,
On Tue, 27 Jul 2021 15:21:21 +0300
José Pekkarinen <jose.pekkarinen@unikie.com> wrote:
> Thanks for quickly addressing this Thomas. If I may, as this is a
> fix, is there any process to backport it to the stable versions? Perhaps
> I have to resend it to the mailing list with another label? My customer
> would be glad to take it from there.
Our process to backport to stable versions is that Peter Korsgaard (one
of the Buildroot co-maintainers) reviews the entire set of commits that
go into master, and whenever a commit is a security bump or a fix, it
gets backported to 2021.02.x.
I have Cc'ed Peter on your request to make sure it is clear to him that
commit 90dd1d6178b01f6da3e59e43d0c7efdf984a72d8 is a fix that should be
backported to 2021.02.x.
Best regards,
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH] Remove deprecated matchpathcon calls
2021-07-27 12:43 ` Thomas Petazzoni
@ 2021-07-27 12:46 ` José Pekkarinen
0 siblings, 0 replies; 4+ messages in thread
From: José Pekkarinen @ 2021-07-27 12:46 UTC (permalink / raw)
To: Thomas Petazzoni; +Cc: buildroot
[-- Attachment #1.1: Type: text/plain, Size: 953 bytes --]
On Tue, Jul 27, 2021 at 3:43 PM Thomas Petazzoni <
thomas.petazzoni@bootlin.com> wrote:
> Hello José,
>
> On Tue, 27 Jul 2021 15:21:21 +0300
> José Pekkarinen <jose.pekkarinen@unikie.com> wrote:
>
> > Thanks for quickly addressing this Thomas. If I may, as this is a
> > fix, is there any process to backport it to the stable versions? Perhaps
> > I have to resend it to the mailing list with another label? My customer
> > would be glad to take it from there.
>
> Our process to backport to stable versions is that Peter Korsgaard (one
> of the Buildroot co-maintainers) reviews the entire set of commits that
> go into master, and whenever a commit is a security bump or a fix, it
> gets backported to 2021.02.x.
>
> I have Cc'ed Peter on your request to make sure it is clear to him that
> commit 90dd1d6178b01f6da3e59e43d0c7efdf984a72d8 is a fix that should be
> backported to 2021.02.x.
>
Fantastic! Thanks!
José.
[-- Attachment #1.2: Type: text/html, Size: 1638 bytes --]
[-- Attachment #2: Type: text/plain, Size: 145 bytes --]
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-07-27 12:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-23 9:51 [Buildroot] [PATCH] Remove deprecated matchpathcon calls José Pekkarinen
2021-07-24 21:38 ` Thomas Petazzoni
[not found] ` <CAJPV9MpuxCHXRAf2zTeuZnHB1FjiwtJHA6-UxEvHFFJ8WWg4gw@mail.gmail.com>
2021-07-27 12:43 ` Thomas Petazzoni
2021-07-27 12:46 ` José Pekkarinen
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.