aboutsummaryrefslogtreecommitdiffstats
path: root/security/tomoyo/securityfs_if.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/tomoyo/securityfs_if.c')
-rw-r--r--security/tomoyo/securityfs_if.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/security/tomoyo/securityfs_if.c b/security/tomoyo/securityfs_if.c
index 5eb53510c4a7..9967c1c5c713 100644
--- a/security/tomoyo/securityfs_if.c
+++ b/security/tomoyo/securityfs_if.c
@@ -38,6 +38,19 @@ static int tomoyo_release(struct inode *inode, struct file *file)
38} 38}
39 39
40/** 40/**
41 * tomoyo_poll - poll() for /proc/ccs/ interface.
42 *
43 * @file: Pointer to "struct file".
44 * @wait: Pointer to "poll_table".
45 *
46 * Returns 0 on success, negative value otherwise.
47 */
48static unsigned int tomoyo_poll(struct file *file, poll_table *wait)
49{
50 return tomoyo_poll_control(file, wait);
51}
52
53/**
41 * tomoyo_read - read() for /sys/kernel/security/tomoyo/ interface. 54 * tomoyo_read - read() for /sys/kernel/security/tomoyo/ interface.
42 * 55 *
43 * @file: Pointer to "struct file". 56 * @file: Pointer to "struct file".
@@ -79,6 +92,7 @@ static ssize_t tomoyo_write(struct file *file, const char __user *buf,
79static const struct file_operations tomoyo_operations = { 92static const struct file_operations tomoyo_operations = {
80 .open = tomoyo_open, 93 .open = tomoyo_open,
81 .release = tomoyo_release, 94 .release = tomoyo_release,
95 .poll = tomoyo_poll,
82 .read = tomoyo_read, 96 .read = tomoyo_read,
83 .write = tomoyo_write, 97 .write = tomoyo_write,
84}; 98};