security.c (c1f3ee120bb61045b1c0a3ead620d1d65af47130) security.c (42492594043d621a7910ff5877c3eb9202870b45)
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 *
8 * This program is free software; you can redistribute it and/or modify

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

488 return security_ops->inode_need_killpriv(dentry);
489}
490
491int security_inode_killpriv(struct dentry *dentry)
492{
493 return security_ops->inode_killpriv(dentry);
494}
495
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 *
8 * This program is free software; you can redistribute it and/or modify

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

488 return security_ops->inode_need_killpriv(dentry);
489}
490
491int security_inode_killpriv(struct dentry *dentry)
492{
493 return security_ops->inode_killpriv(dentry);
494}
495
496int security_inode_getsecurity(const struct inode *inode, const char *name, void *buffer, size_t size, int err)
496int security_inode_getsecurity(const struct inode *inode, const char *name, void **buffer, bool alloc)
497{
498 if (unlikely(IS_PRIVATE(inode)))
499 return 0;
497{
498 if (unlikely(IS_PRIVATE(inode)))
499 return 0;
500 return security_ops->inode_getsecurity(inode, name, buffer, size, err);
500 return security_ops->inode_getsecurity(inode, name, buffer, alloc);
501}
502
503int security_inode_setsecurity(struct inode *inode, const char *name, const void *value, size_t size, int flags)
504{
505 if (unlikely(IS_PRIVATE(inode)))
506 return 0;
507 return security_ops->inode_setsecurity(inode, name, value, size, flags);
508}

--- 595 unchanged lines hidden ---
501}
502
503int security_inode_setsecurity(struct inode *inode, const char *name, const void *value, size_t size, int flags)
504{
505 if (unlikely(IS_PRIVATE(inode)))
506 return 0;
507 return security_ops->inode_setsecurity(inode, name, value, size, flags);
508}

--- 595 unchanged lines hidden ---