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

deny_execmem logic is inverted #2489

Open
RoyalOughtness opened this issue Dec 16, 2024 · 0 comments
Open

deny_execmem logic is inverted #2489

RoyalOughtness opened this issue Dec 16, 2024 · 0 comments

Comments

@RoyalOughtness
Copy link

RoyalOughtness commented Dec 16, 2024

the naming of deny_execmem implies that if it is set to true, then execmem will be denied. However, the opposite is the case, for example:

tunable_policy(`deny_execmem',`',`
	allow rpm_script_t self:process execmem;
')

It's for this reason that deny_execmem is set to false, even though the intent and effect is to deny execmem:

gen_tunable(deny_execmem,false)

This is highly confusing and should be renamed to allow_execmem and remain false by default. This would accurately capture the intent: that allowing execmem is disabled/false.

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

No branches or pull requests

1 participant