Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932962 - sys-power/nut-2.8.2 fails at configure, sandbox access violation systemd notify
Summary: sys-power/nut-2.8.2 fails at configure, sandbox access violation systemd notify
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-28 11:30 UTC by SigHunter
Modified: 2024-05-29 18:56 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,46.78 KB, text/x-log)
2024-05-28 11:32 UTC, SigHunter
Details
emerge --info (emergeinfo.txt,16.24 KB, text/plain)
2024-05-28 11:32 UTC, SigHunter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SigHunter 2024-05-28 11:30:56 UTC
I'm upgrading from sys-power/nut-2.8.0-r3 to 2.8.2 and it fails at configuring

checking if your systemd version supports Type=notify...  * ACCESS DENIED:  utimensat:          /proc/self/fd/9
yes
checking if your systemd version supports Type=notify-reload...  * ACCESS DENIED:  utimensat:          /proc/self/fd/9
yes

 * ----------------------- SANDBOX ACCESS VIOLATION SUMMARY -----------------------
 * LOG FILE: "/var/tmp/portage/sys-power/nut-2.8.2/temp/sandbox.log"
 * 
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: utimensat
S: deny
P: /proc/self/fd/9
A: /proc/self/fd/9
R: /run/systemd/systemd-units-load
C: /usr/bin/systemd-analyze verify systemd-analyze-dZR0c0.service 

F: utimensat
S: deny
P: /proc/self/fd/9
A: /proc/self/fd/9
R: /run/systemd/systemd-units-load
C: /usr/bin/systemd-analyze verify systemd-analyze-miCyxS.service 
 * --------------------------------------------------------------------------------


Reproducible: Always

Steps to Reproduce:
happens every time I try to emerge sys-power/nut-2.8.2



there's a patch included for nut-2.8.2 that is spelled systemd_notify.path (filename and in ebuild). Probably should be called patch but it gets applied nonetheless
Comment 1 SigHunter 2024-05-28 11:32:08 UTC
Created attachment 894548 [details]
build.log
Comment 2 SigHunter 2024-05-28 11:32:45 UTC
Created attachment 894549 [details]
emerge --info
Comment 3 Michael Cook 2024-05-28 14:44:38 UTC
Looks like it's patching it out of the configure.ac but we're only running autogen.sh for live ebuild so the configure script isn't actually fixed. So I guess we need to run autogen.sh or patch the configure script instead.
Comment 4 Larry the Git Cow gentoo-dev 2024-05-29 18:56:10 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2575dc7c05a83eeb1ae28e32d7067173861b3785

commit 2575dc7c05a83eeb1ae28e32d7067173861b3785
Author:     Robin H. Johnson <robbat2@gentoo.org>
AuthorDate: 2024-05-29 18:43:31 +0000
Commit:     Robin H. Johnson <robbat2@gentoo.org>
CommitDate: 2024-05-29 18:56:06 +0000

    sys-power/nut: fix systemd-analyze sandbox violation
    
    Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
    Closes: https://bugs.gentoo.org/932962

 sys-power/nut/files/{systemd_notify.path => systemd_notify.patch} | 0
 sys-power/nut/nut-2.8.2.ebuild                                    | 5 +++--
 sys-power/nut/nut-9999.ebuild                                     | 5 +++--
 3 files changed, 6 insertions(+), 4 deletions(-)