Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow su domains write login records #2015

Merged
merged 2 commits into from
Jan 31, 2024

Conversation

zpytela
Copy link
Contributor

@zpytela zpytela commented Jan 30, 2024

No description provided.

This reverts commit 2d6a2ac which allowed the
permissions into an incorrect template.
With this commit, the permissions were added to the su_role_template().
The commit addresses the following AVC denial:
type=SYSCALL msg=audit(12/31/1969 19:00:08.000:0)  : arch=unknown-elf-type(x86_64) syscall=read success=no exit=EACCES(Permission denied) a0=0x0xffffff9c a1=0x0x7fa86f9fea59 a2=0xO_WRONLY a3=0x0x0 items=1 ppid=44644 pid=44645 auid=root uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=pts0 ses=1 comm=su exe=/usr/bin/su subj=staff_u:sysadm_r:sysadm_su_t:s0-s0:c0.c1023 key=perm_access
type=PATH msg=audit(12/31/1969 19:00:08.000:0)  : item=0 name=/var/log/wtmp inode=25 dev=08:0a mode=000,000 664 ouid=root ogid=root rdev=00:00 obj=system_u:object_r:wtmp_t:s0 nametype=NORMAL cap_fp=none cap_fi=none cap_fe=0 cap_fver=0 cap_frootid=0
type=AVC msg=audit(12/31/1969 19:00:08.000:0)  : avc: denied { write }  for pid=44645 comm=su name=wtmp dev="sda10" ino=25 scontext=staff_u:sysadm_r:sysadm_su_t:s0-s0:c0.c1023 tcontext=system_u:object_r:wtmp_t:s0 tclass=file permissive=0

Resolves: RHEL-2606
@zpytela zpytela merged commit 8afc5e7 into fedora-selinux:rawhide Jan 31, 2024
4 checks passed
@zpytela zpytela deleted the su-domains-login-write branch January 31, 2024 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant