suser suser_cred - check if credentials have superuser privileges
These interfaces have now been obsoleted by priv(9), and are provided only for compatibility with third party kernel modules that have not yet been updated to the new interface. They should not be used in any new kernel code.
function is the most common, and should be used unless special circumstances dictate otherwise.
function should be used when the credentials to be checked are not the thread's own, when there is no thread, when superuser powers should be extended to imprisoned roots, or when the credential to be checked is the real user rather than the effective user.
Whether or not a privilege is permitted in a
depends on logic in
In general, privileges are assigned based on the effective user ID; in some cases, the real user ID may be used.
The Fa flags field is currently unused.
and suser_cred ();
functions note the fact that superuser powers have been used in the process structure of the process specified. Because part of their function is to notice whether superuser powers have been used, the functions should only be called after other permission possibilities have been exhausted.
Закладки на сайте
Проследить за страницей
Created 1996-2022 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру