Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 892325

Summary: app-admin/bastille installs files/directories with umask 077
Product: Gentoo Linux Reporter: Mike Gilbert <floppym>
Component: Current packagesAssignee: The Gentoo Linux Hardened Team <hardened>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Mike Gilbert gentoo-dev 2023-01-28 03:12:20 UTC
The Install.sh script sets umask 077 before copying a bunch of files and directories into DESTDIR. This will result in non-root users being unable to read any of the installed files.

Generally, umask 022 is more appropriate.
Comment 1 Larry the Git Cow gentoo-dev 2023-01-28 03:29:09 UTC
The bug has been referenced in the following commit(s):

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

commit e0a501a8545706159338ad242eef0a4b4c4da256
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2023-01-28 03:26:34 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2023-01-28 03:28:59 +0000

    profiles: mask app-admin/bastille for removal
    
    Bug: https://bugs.gentoo.org/455542
    Bug: https://bugs.gentoo.org/892325
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 profiles/package.mask | 8 ++++++++
 1 file changed, 8 insertions(+)
Comment 2 Larry the Git Cow gentoo-dev 2023-03-18 16:45:11 UTC
The bug has been closed via the following commit(s):

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

commit 7af2cd5ba65642e43f8dbac890db6fef9566aac5
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2023-03-18 16:42:56 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2023-03-18 16:42:56 +0000

    app-admin/bastille: treeclean
    
    Closes: https://bugs.gentoo.org/455542
    Closes: https://bugs.gentoo.org/892325
    Signed-off-by: David Seifert <soap@gentoo.org>

 app-admin/bastille/Manifest                        |  2 -
 app-admin/bastille/bastille-3.0.9-r3.ebuild        | 82 ----------------------
 .../bastille/files/bastille-3.0.9-openrc.patch     | 12 ----
 app-admin/bastille/files/bastille-3.0.9-perl.patch | 25 -------
 .../files/bastille-3.0.9-renamewidgets.patch       | 48 -------------
 app-admin/bastille/metadata.xml                    | 11 ---
 profiles/package.mask                              |  8 ---
 7 files changed, 188 deletions(-)