Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 893636 - app-crypt/tpm2-tss-4.0.1 - The tmpfiles processor exited with a non-zero exit code
Summary: app-crypt/tpm2-tss-4.0.1 - The tmpfiles processor exited with a non-zero exit...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Christopher Byrne
URL:
Whiteboard:
Keywords: PullRequest
: 893542 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-02-08 18:57 UTC by Toralf Förster
Modified: 2024-03-08 18:28 UTC (History)
2 users (show)

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


Attachments
app-crypt:tpm2-tss-4.0.1:20230208-142637.log.bz2 (app-crypt:tpm2-tss-4.0.1:20230208-142637.log.bz2,15.53 KB, application/x-bzip)
2023-02-08 18:57 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,21.95 KB, text/plain)
2023-02-08 18:57 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,19.27 KB, application/x-bzip)
2023-02-08 18:57 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-02-08 18:57:34 UTC
 * The tmpfiles processor exited with a non-zero exit code

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd_merged_usr-j4-20230208-080021

  -------------------------------------------------------------------

  The log matches a QA pattern or a pattern requested by a Gentoo developer.
Comment 1 Toralf Förster gentoo-dev 2023-02-08 18:57:35 UTC
Created attachment 850230 [details]
app-crypt:tpm2-tss-4.0.1:20230208-142637.log.bz2
Comment 2 Toralf Förster gentoo-dev 2023-02-08 18:57:36 UTC
Created attachment 850232 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-02-08 18:57:38 UTC
Created attachment 850234 [details]
etc.portage.tar.bz2
Comment 4 Toralf Förster gentoo-dev 2023-02-08 18:58:15 UTC
*** Bug 893542 has been marked as a duplicate of this bug. ***
Comment 5 Christopher Byrne 2023-02-25 02:53:54 UTC
From the log:

fchownat() of /sys/kernel/security/tpm0/binary_bios_measurements failed: Read-only file system

I have both a systemd and openrc vm and in both, the default for securityfs is rw. I'm guessing this is something specific to the tinderbox config?
Comment 6 Toralf Förster gentoo-dev 2023-02-25 09:19:20 UTC
(In reply to Christopher Byrne from comment #5)
> From the log:
> 
> fchownat() of /sys/kernel/security/tpm0/binary_bios_measurements failed:
> Read-only file system
> 
> I have both a systemd and openrc vm and in both, the default for securityfs
> is rw. I'm guessing this is something specific to the tinderbox config?

Indeed: https://github.com/toralf/tinderbox/blob/main/bin/bwrap.sh#L151

OTOH is an ebuild allowed to write to / ?
Comment 7 Kobboi 2023-06-12 09:55:24 UTC
Is this the reason the package leaves a  /var/tmp/portage/app-crypt/tpm2-tss-4.0.1/imageno/tpm2-tss.conf behind after what looks like a successful compilation/installation?
Comment 8 Christopher Byrne 2023-06-14 15:16:13 UTC
No, that's a different problem. Create a new bug for that.
Comment 9 Larry the Git Cow gentoo-dev 2024-03-08 18:28:46 UTC
The bug has been closed via the following commit(s):

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

commit c4911ac3943c60832bce5210e5839f326db707d5
Author:     Christopher Byrne <salah.coronya@gmail.com>
AuthorDate: 2024-03-08 02:17:31 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-03-08 18:28:43 +0000

    app-crypt/tpm2-tss: Don't fail tmpfiles_process where /sys is restricted
    
    Closes: https://bugs.gentoo.org/893636
    Signed-off-by: Christopher Byrne <salah.coronya@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/35661
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 ...sider-failures-to-write-files-in-sys-hard.patch |  27 +++++
 app-crypt/tpm2-tss/tpm2-tss-4.0.1-r1.ebuild        | 109 +++++++++++++++++++++
 2 files changed, 136 insertions(+)