Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933707 - gui-libs/greetd: pull in sec-policy/selinux-xserver on selinux systems
Summary: gui-libs/greetd: pull in sec-policy/selinux-xserver on selinux systems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: SELinux (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: SE Linux Bugs
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-06-06 23:18 UTC by Rahul Sandhu
Modified: 2024-09-24 07:55 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rahul Sandhu 2024-06-06 23:18:30 UTC
gui-libs/greetd has a line of policy (insignificant, but still relevant) in the hardened refpolicy:
./policy/modules/services/xserver.fc:80:/usr/bin/greetd         --      gen_context(system_u:object_r:xdm_exec_t,s0)

This likely means that sec-policy/selinux-xserver should be pulled in for selinux systems. As for how, I'm not entirely too sure how the small files policy would affect this, but I would think maybe a selinux use flag would work?
Comment 1 Larry the Git Cow gentoo-dev 2024-09-24 07:55:11 UTC
The bug has been closed via the following commit(s):

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

commit dfba725be83c511fa86d0351f7f521a8d175efc1
Author:     Rahul Sandhu <rahul@sandhuservices.dev>
AuthorDate: 2024-09-23 17:15:12 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-09-24 07:54:46 +0000

    gui-libs/greetd: add sec-policy/selinux-xserver to RDEPEND for SELinux
    
    For SELinux system, greetd requires sec-policy/selinux-xserver add
    runtime. Let's add it to RDEPEND.
    
    Closes: https://bugs.gentoo.org/933707
    Signed-off-by: Rahul Sandhu <rahul@sandhuservices.dev>
    Closes: https://github.com/gentoo/gentoo/pull/38746
    Signed-off-by: Sam James <sam@gentoo.org>

 gui-libs/greetd/greetd-0.10.3.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)