Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux...
[cascardo/linux.git] / net / dns_resolver / dns_query.c
index dd8696a..39d2c39 100644 (file)
@@ -129,6 +129,7 @@ int dns_query(const char *type, const char *name, size_t namelen,
        }
 
        down_read(&rkey->sem);
+       set_bit(KEY_FLAG_ROOT_CAN_INVAL, &rkey->flags);
        rkey->perm |= KEY_USR_VIEW;
 
        ret = key_validate(rkey);