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

remove unnecessary code #2

Closed
wants to merge 1 commit into from
Closed

Conversation

plsph
Copy link
Contributor

@plsph plsph commented Apr 4, 2024

Regarding grub-mkconfig, this is no longer the case. There is dontaudit statement and config gets generated even without permisions for cwd.
Regarding portage, there is dac_read_search added to portage_t via if:

allow $1 self:capability { chown dac_override dac_read_search fowner fsetid mknod net_raw setgid setuid };

Signed-off-by: Grzegorz Filo <[email protected]>
@plsph
Copy link
Contributor Author

plsph commented Apr 16, 2024

@0xC0ncord , @perfinion ;)

ifdef(`distro_gentoo',`
# Fix bug #537652 - grub2-mkconfig has search rights needed on current dir (usually user home dir)
userdom_search_user_home_dirs(bootloader_t)
')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does grub-mkconfig -o /boot/grub/grub.cfg continue to work after this is removed? I don't use grub anymore so I can't readily test this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind, I see you pointed this out in your original comment. :)

@plsph plsph requested a review from 0xC0ncord May 2, 2024 11:35
Copy link
Member

@0xC0ncord 0xC0ncord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I'll pull this into the next policy release. Thanks!

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.

2 participants