file_table.c (0f8f86c7bdd1c954fbe153af437a0d91a6c5721a) | file_table.c (6c21a7fb492bf7e2c4985937082ce58ddeca84bd) |
---|---|
1/* 2 * linux/fs/file_table.c 3 * 4 * Copyright (C) 1991, 1992 Linus Torvalds 5 * Copyright (C) 1997 David S. Miller (davem@caip.rutgers.edu) 6 */ 7 8#include <linux/string.h> 9#include <linux/slab.h> 10#include <linux/file.h> 11#include <linux/fdtable.h> 12#include <linux/init.h> 13#include <linux/module.h> 14#include <linux/fs.h> 15#include <linux/security.h> | 1/* 2 * linux/fs/file_table.c 3 * 4 * Copyright (C) 1991, 1992 Linus Torvalds 5 * Copyright (C) 1997 David S. Miller (davem@caip.rutgers.edu) 6 */ 7 8#include <linux/string.h> 9#include <linux/slab.h> 10#include <linux/file.h> 11#include <linux/fdtable.h> 12#include <linux/init.h> 13#include <linux/module.h> 14#include <linux/fs.h> 15#include <linux/security.h> |
16#include <linux/ima.h> | |
17#include <linux/eventpoll.h> 18#include <linux/rcupdate.h> 19#include <linux/mount.h> 20#include <linux/capability.h> 21#include <linux/cdev.h> 22#include <linux/fsnotify.h> 23#include <linux/sysctl.h> 24#include <linux/percpu_counter.h> --- 250 unchanged lines hidden (view full) --- 275 276 if (unlikely(file->f_flags & FASYNC)) { 277 if (file->f_op && file->f_op->fasync) 278 file->f_op->fasync(-1, file, 0); 279 } 280 if (file->f_op && file->f_op->release) 281 file->f_op->release(inode, file); 282 security_file_free(file); | 16#include <linux/eventpoll.h> 17#include <linux/rcupdate.h> 18#include <linux/mount.h> 19#include <linux/capability.h> 20#include <linux/cdev.h> 21#include <linux/fsnotify.h> 22#include <linux/sysctl.h> 23#include <linux/percpu_counter.h> --- 250 unchanged lines hidden (view full) --- 274 275 if (unlikely(file->f_flags & FASYNC)) { 276 if (file->f_op && file->f_op->fasync) 277 file->f_op->fasync(-1, file, 0); 278 } 279 if (file->f_op && file->f_op->release) 280 file->f_op->release(inode, file); 281 security_file_free(file); |
283 ima_file_free(file); | |
284 if (unlikely(S_ISCHR(inode->i_mode) && inode->i_cdev != NULL)) 285 cdev_put(inode->i_cdev); 286 fops_put(file->f_op); 287 put_pid(file->f_owner.pid); 288 file_kill(file); 289 if (file->f_mode & FMODE_WRITE) 290 drop_file_write_access(file); 291 file->f_path.dentry = NULL; --- 167 unchanged lines hidden --- | 282 if (unlikely(S_ISCHR(inode->i_mode) && inode->i_cdev != NULL)) 283 cdev_put(inode->i_cdev); 284 fops_put(file->f_op); 285 put_pid(file->f_owner.pid); 286 file_kill(file); 287 if (file->f_mode & FMODE_WRITE) 288 drop_file_write_access(file); 289 file->f_path.dentry = NULL; --- 167 unchanged lines hidden --- |