set_create_files_as(9)
πΈ set_create_files_as(9) β Kernel API Manual energy πΈ
okay bestie, welcome to the Kernel API Manual page for set_create_files_as(9) β this one is short, sweet, and lowkey iconic. π
β¨ NAME β¨
set_create_files_as β Set the LSM file create context in a set of credentials
π SYNOPSIS π
int set_create_files_as (struct cred *new , struct inode *inode );
π¦ ARGUMENTS π¦
newβ The credentials to alter.inodeβ The inode to take the context from.
π DESCRIPTION π
Okay so hereβs the vibe: this changes the LSM file creation context in a set of credentials so itβs the same as the object context of the specified inode. The whole point? So that the new inodes have the same MAC context as that inode. No cap, thatβs the whole little glow-up. β¨
π SEE ALSO π
Kernel file ./kernel/cred.c: __put_cred(9), get_task_cred(9), prepare_creds(9), commit_creds(9), abort_creds(9), cred_fscmp(9), prepare_kernel_cred(9), set_security_override(9).
thatβs the whole page, bestie! Signing off from source/version ./kernel, dated October 2026, with set_create_files_as(9) energy. Mwah πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms