security.c (204cc0ccf1d49c6292aeef4c8edd1b3d10ff933c) security.c (757cbe597fe8490c7c0a9650ebe5d60195f151d4)
1/*
2 * Security plug functions
3 *
4 * Copyright (C) 2001 WireX Communications, Inc <chris@wirex.com>
5 * Copyright (C) 2001-2002 Greg Kroah-Hartman <greg@kroah.com>
6 * Copyright (C) 2001 Networks Associates Technology, Inc <ssmalley@nai.com>
7 * Copyright (C) 2016 Mellanox Technologies
8 *

--- 444 unchanged lines hidden (view full) ---

453 unsigned long kern_flags,
454 unsigned long *set_kern_flags)
455{
456 return call_int_hook(sb_clone_mnt_opts, 0, oldsb, newsb,
457 kern_flags, set_kern_flags);
458}
459EXPORT_SYMBOL(security_sb_clone_mnt_opts);
460
1/*
2 * Security plug functions
3 *
4 * Copyright (C) 2001 WireX Communications, Inc <chris@wirex.com>
5 * Copyright (C) 2001-2002 Greg Kroah-Hartman <greg@kroah.com>
6 * Copyright (C) 2001 Networks Associates Technology, Inc <ssmalley@nai.com>
7 * Copyright (C) 2016 Mellanox Technologies
8 *

--- 444 unchanged lines hidden (view full) ---

453 unsigned long kern_flags,
454 unsigned long *set_kern_flags)
455{
456 return call_int_hook(sb_clone_mnt_opts, 0, oldsb, newsb,
457 kern_flags, set_kern_flags);
458}
459EXPORT_SYMBOL(security_sb_clone_mnt_opts);
460
461int security_sb_parse_opts_str(char *options, void **mnt_opts)
461int security_add_mnt_opt(const char *option, const char *val, int len,
462 void **mnt_opts)
462{
463{
463 return call_int_hook(sb_parse_opts_str, 0, options, mnt_opts);
464 return call_int_hook(sb_add_mnt_opt, -EINVAL,
465 option, val, len, mnt_opts);
464}
466}
465EXPORT_SYMBOL(security_sb_parse_opts_str);
467EXPORT_SYMBOL(security_add_mnt_opt);
466
467int security_inode_alloc(struct inode *inode)
468{
469 inode->i_security = NULL;
470 return call_int_hook(inode_alloc_security, 0, inode);
471}
472
473void security_inode_free(struct inode *inode)

--- 1348 unchanged lines hidden ---
468
469int security_inode_alloc(struct inode *inode)
470{
471 inode->i_security = NULL;
472 return call_int_hook(inode_alloc_security, 0, inode);
473}
474
475void security_inode_free(struct inode *inode)

--- 1348 unchanged lines hidden ---