parent_allows_removal(9)
π parent_allows_removal(9) β like, the kernel API manual bestie π
okay so this is parent_allows_removal(9) from the Kernel API Manual, and honestly? it's giving "tiny function, big responsibility" vibes. let's get into it β¨
πΈ NAME πΈ
parent_allows_removal β verify if it's ok to remove an exception
like, it literally just checks whether yeeting an exception is allowed or not. that's the whole job. icon behavior fr π
π¦ SYNOPSIS π¦
bool parent_allows_removal (struct dev_cgroup *childcg , struct
dev_exception_item *ex );
two args, one bool back. simple. clean. we love a low-arg-count king π
π ARGUMENTS π
childcgβ the child cgroup from where the exception will be removed. yes, that child cgroup. the one losing the exception π«Άexβ the exception being removed. bye bestie π
π§ DESCRIPTION π§
okay so picture this: you're removing an exception in cgroups that have the default ALLOW policy. the way that you literally cannot just remove it and dip β you must check if removing it will give the child cgroup more access than the parent has. like, more access than mom said you could have. no cap. that's the whole vibe check π₯
bestie, if you skip this check, the child cgroup could end up with more access than the parent β and that's not slay, that's a security problem π
β RETURN β
true if it's ok to remove the exception, false otherwise.
that's it. that's the return value. binary queen behavior π
π SEE ALSO π
- Kernel file
./security/device_cgroup.c dev_exception_clean(9)devcgroup_online(9)match_exception(9)match_exception_partial(9)verify_new_ex(9)may_allow_all(9)revalidate_active_exceptions(9)propagate_exception(9)devcgroup_legacy_check_permission(9)
like, go read all of them. iykyk π¦β¨
shoutout to the ./security girlies, this one's stamped October 2026 and it lives in the Kernel API Manual β catch you in the next page 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