Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 56269ba4 authored by Paul Moore's avatar Paul Moore Committed by derfelot
Browse files

selinux: check ss_initialized before revalidating an inode label



There is no point in trying to revalidate an inode's security label if
the security server is not yet initialized.

Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent d447cab6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -260,7 +260,7 @@ static int __inode_security_revalidate(struct inode *inode,

	might_sleep_if(may_sleep);

	if (isec->initialized != LABEL_INITIALIZED) {
	if (ss_initialized && isec->initialized != LABEL_INITIALIZED) {
		if (!may_sleep)
			return -ECHILD;