KEYS: Allow special keyrings to be cleared
[sfrench/cifs-2.6.git] / fs / cifs / cifsacl.c
index 72ddf23ef6f7d77145dbe765732633ff8e588076..854749d21bb1a6a28496e88b0061fbe98a2693b2 100644 (file)
@@ -556,6 +556,7 @@ init_cifs_idmap(void)
 
        /* instruct request_key() to use this special keyring as a cache for
         * the results it looks up */
+       set_bit(KEY_FLAG_ROOT_CAN_CLEAR, &keyring->flags);
        cred->thread_keyring = keyring;
        cred->jit_keyring = KEY_REQKEY_DEFL_THREAD_KEYRING;
        root_cred = cred;