linux-security-module.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Denying access from sb_umount issue
@ 2020-01-27 20:34 Alexander Ivanov
  2020-01-27 20:58 ` James Morris
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Ivanov @ 2020-01-27 20:34 UTC (permalink / raw)
  To: linux-security-module

The lsm module implementes sb_umount() hook to disable lazy umounts. When access is denied, all consecutive umounts fail. It looks like mount reference count is messed up when sb_umount() return -EPERM. Is it possible that umount syscall assumes do_umount() touches those references and it calls 

 dput(path.dentry);
 mntput_no_expire(mnt);

regardless of what do_mount() returns?

Thanks,
--Alex

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-27 21:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-27 20:34 Denying access from sb_umount issue Alexander Ivanov
2020-01-27 20:58 ` James Morris
2020-01-27 21:10   ` Alexander Ivanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).