common_perm_dir_dentry(9)
π¦ common_perm_dir_dentry(9) π¦
okay so bestie, this is section (9) of the Kernel API Manual β yes, the kernel API manual, weβre in the big leagues now π
. This page is literally about common_perm_dir_dentry, the common permission wrapper for when the path is a dir and the thing is a dentry. Itβs giving βpermission check but make it directory/dentry specific,β and honestly? iconic. Letβs go π«Άβ¨
β¨ NAME β¨
common_perm_dir_dentry β common permission wrapper when path is dir, dentry. Thatβs the whole vibe: itβs the wrapper that handles the permission check when youβve got a directory path and a dentry. No cap π§
πΈ SYNOPSIS πΈ
int common_perm_dir_dentry (const char *op , const struct path *dir ,
struct dentry *dentry , u32 mask , struct path_cond *cond );
π ARGUMENTS π
okay bestie, hereβs the cast β every single one matters:
opβ operation being checked. Like, what are we even doing here? This tells you πdirβ directory of the dentry.NOT NULL, bestie β do not come in here with a null, fr fr πdentryβ dentry to check. AlsoNOT NULLβ the audacity of a null dentry? not today πmaskβ requested permissions mask. The permissions wishlist, basically πcondβ conditional info for the permission request.NOT NULLβ itβs required, no skipping π€
the NOT NULL tags are not decorative, bestie β theyβre the whole vibe check π¨
π RETURN π
Returns 0 β slay β
. Otherwise you get an error code if thereβs an error or permission was denied. Thatβs it, thatβs the tea βπ
π SEE ALSO π
Kernel file ./security/apparmor/lsm.c β and the whole squad is:
common_perm(9)common_perm_cond(9)common_perm_rm(9)common_perm_create(9)apparmor_uring_override_creds(9)apparmor_uring_sqpoll(9)apparmor_bprm_committing_creds(9)apparmor_bprm_committed_creds(9)apparmor_sk_clone_security(9)apparmor_unix_stream_connect(9)apparmor_unix_may_send(9)apparmor_socket_post_create(9)apparmor_socket_bind(9)apparmor_socket_getpeersec_stream(9)apparmor_socket_getpeersec_dgram(9)apparmor_sock_graft(9)apparmor_socket_sock_rcv_skb(9)set_init_ctx(9)
mwah π this page lives under ./security/apparmor, is dated October 2026, and is literally common_perm_dir_dentry(9). byeee, go check those permissions bestie π«Άπ
π¦ 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