security_task_fix_setuid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

Bestie, welcome to the security_task_fix_setuid(9) page from the Kernel API Manual β€” yes, we're in kernel-hook territory and it's lowkey iconic. πŸ’…

πŸ’– NAME πŸ’–

security_task_fix_setuid β€” update the LSM with new user id attributes. That's the whole vibe. ✨

✨ SYNOPSIS ✨

int security_task_fix_setuid (struct cred *new , const struct cred *old
, int flags );

πŸŽ€ ARGUMENTS πŸŽ€

  • new β€” updated credentials. The fresh set, okay?
  • old β€” credentials being replaced. The old era, we don't miss it.
  • flags β€” LSM_SETID_* flag values. These tell you which setid-ish call came through.

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so: this hook updates the module's state after setting one or more of the user identity attributes of the current process. The flags parameter indicates which of the set*uid system calls invoked this hook. new is the set of credentials that will be installed β€” so make your modifications to new rather than to current->cred, fr fr. 🫢

🌸 RETURN 🌸

Returns 0 on success. That's it, that's the return. Slay. πŸ’–

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./security/security.c, plus the entire LSM friend group β€” the guest list is long, periodt:


Okay bestie, that's the whole page. It comes from ./security, dated October 2026, and it's the security_task_fix_setuid(9) manual page β€” mwah. πŸ’–πŸŽ€

πŸ“¦ where this page comes from