lkml.org 
[lkml]   [2006]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Generic infrastructure for acls


    >+generic_acl_set(struct inode *inode, struct generic_acl_operations *ops,
    >+ int type, const void *value, size_t size)
    >+{
    >+ struct posix_acl *acl = NULL;
    >+ int error;
    >+
    >+ if (S_ISLNK(inode->i_mode))
    >+ return -EOPNOTSUPP;
    >+ if ((current->fsuid != inode->i_uid) && !capable(CAP_FOWNER))

    >+ if (error > 0) {
    >+ ops->setacl(inode, ACL_TYPE_ACCESS, clone);
    >+ }

    redundant () {}



    Jan Engelhardt
    --
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-09-06 08:59    [W:0.024 / U:16.548 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site