-
Notifications
You must be signed in to change notification settings - Fork 1k
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
SELinux: Use kernel_read_fs_sysctls interface instead custom policy #1923
base: master
Are you sure you want to change the base?
Conversation
CC @zpytela for double-check. |
Correct, also improves legibility and is just the correct way: For using types from other modules, including base, interfaces should be used. Now similar changes should also apply to other parts, it may not be that easy this time. |
The kernel_read_fs_sysctls interface does exactly the same thing and we don't reinvent the wheel. It's also easier to maintain.
What do you mean by that? |
👍 |
For using types from other modules interfaces should be used. No direct reference to gconf_home_t and admin_home_t. |
I see. The use of What complications this can cause? Or is it just the right thing to do? |
To ensure types from other modules are handled properly, e. g. when a particular module is disabled. Certainly it is the right thing, improves legibility and maintenance etc. |
The kernel_read_fs_sysctls interface does exactly the same thing and we don't reinvent the wheel. It's also easier to maintain.
Supersedes #1918