securityfs_if.c (9a64e8e0ace51b309fdcff4b4754b3649250382a) | securityfs_if.c (496ad9aa8ef448058e36ca7a787c61f2e63f0f54) |
---|---|
1/* 2 * security/tomoyo/securityfs_if.c 3 * 4 * Copyright (C) 2005-2011 NTT DATA CORPORATION 5 */ 6 7#include <linux/security.h> 8#include "common.h" --- 121 unchanged lines hidden (view full) --- 130 * 131 * @inode: Pointer to "struct inode". 132 * @file: Pointer to "struct file". 133 * 134 * Returns 0 on success, negative value otherwise. 135 */ 136static int tomoyo_open(struct inode *inode, struct file *file) 137{ | 1/* 2 * security/tomoyo/securityfs_if.c 3 * 4 * Copyright (C) 2005-2011 NTT DATA CORPORATION 5 */ 6 7#include <linux/security.h> 8#include "common.h" --- 121 unchanged lines hidden (view full) --- 130 * 131 * @inode: Pointer to "struct inode". 132 * @file: Pointer to "struct file". 133 * 134 * Returns 0 on success, negative value otherwise. 135 */ 136static int tomoyo_open(struct inode *inode, struct file *file) 137{ |
138 const int key = ((u8 *) file->f_path.dentry->d_inode->i_private) | 138 const int key = ((u8 *) file_inode(file)->i_private) |
139 - ((u8 *) NULL); 140 return tomoyo_open_control(key, file); 141} 142 143/** 144 * tomoyo_release - close() for /sys/kernel/security/tomoyo/ interface. 145 * 146 * @inode: Pointer to "struct inode". --- 127 unchanged lines hidden --- | 139 - ((u8 *) NULL); 140 return tomoyo_open_control(key, file); 141} 142 143/** 144 * tomoyo_release - close() for /sys/kernel/security/tomoyo/ interface. 145 * 146 * @inode: Pointer to "struct inode". --- 127 unchanged lines hidden --- |