函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:security\tomoyo\common.c Create Date:2022-07-27 21:06:37
首页 Copyright©Brick

2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
/**
 * tomoyo_close_control - close() for /sys/kernel/security/tomoyo/ interface.
 *
 * @head: Pointer to "struct tomoyo_io_buffer".
 */
void tomoyo_close_control(struct tomoyo_io_buffer *head)
{
    /*
     * If the file is /sys/kernel/security/tomoyo/query , decrement the
     * observer counter.
     */
    if (head->type == TOMOYO_QUERY &&
        atomic_dec_and_test(&tomoyo_query_observers))
        wake_up_all(&tomoyo_answer_wait);
    tomoyo_notify_gc(head, false);
}