diff options
| author | Haoxiang Li <haoxiang_li2024@163.com> | 2026-06-22 22:37:22 +0800 |
|---|---|---|
| committer | Paul Moore <paul@paul-moore.com> | 2026-07-01 17:17:41 -0400 |
| commit | dc67c654bc9c9a742e82b5f19acb2f3a00b44cf5 (patch) | |
| tree | ed2f222227e37288fb04516ea84338a56eb03173 /tools/perf/scripts/python | |
| parent | 5adb9195e091ee16617418123ce603cf38104acd (diff) | |
selinux: clean up selinuxfs resources on init failure
init_sel_fs() creates the selinuxfs mount point and registers the
filesystem before mounting selinuxfs internally. If kern_mount()
or the subsequent lookup of the null file fails, the function
returns without undoing the resources that were already registered.
Add the missing error unwinding so the internal mount, filesystem
registration, and sysfs mount point are released as appropriate.
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
