Home
last modified time | relevance | path

Searched refs:oldpxdesc (Results 1 – 4 of 4) sorted by relevance

/third_party/ntfs-3g/libntfs-3g/
Dsecurity.c3091 struct POSIX_SECURITY *oldpxdesc; in ntfs_set_posix_acl() local
3110 oldpxdesc = cached->pxdesc; in ntfs_set_posix_acl()
3111 if (oldpxdesc) { in ntfs_set_posix_acl()
3112 newpxdesc = ntfs_replace_acl(oldpxdesc, in ntfs_set_posix_acl()
3127 oldpxdesc = ntfs_build_permissions_posix(scx->mapping, in ntfs_set_posix_acl()
3129 if (oldpxdesc) { in ntfs_set_posix_acl()
3131 exist = oldpxdesc->defcnt > 0; in ntfs_set_posix_acl()
3133 exist = oldpxdesc->acccnt > 3; in ntfs_set_posix_acl()
3138 newpxdesc = ntfs_replace_acl(oldpxdesc, in ntfs_set_posix_acl()
3141 free(oldpxdesc); in ntfs_set_posix_acl()
[all …]
Dacls.c1245 struct POSIX_SECURITY *ntfs_replace_acl(const struct POSIX_SECURITY *oldpxdesc, in ntfs_replace_acl() argument
1256 + (oldpxdesc->acccnt + count)*sizeof(struct POSIX_ACE); in ntfs_replace_acl()
1259 + (oldpxdesc->defcnt + count)*sizeof(struct POSIX_ACE); in ntfs_replace_acl()
1263 offset = oldpxdesc->acccnt; in ntfs_replace_acl()
1264 newpxdesc->acccnt = oldpxdesc->acccnt; in ntfs_replace_acl()
1269 newpxdesc->acl.ace[i] = oldpxdesc->acl.ace[i]; in ntfs_replace_acl()
1276 newpxdesc->defcnt = oldpxdesc->defcnt; in ntfs_replace_acl()
1282 oldoffset = oldpxdesc->firstdef; in ntfs_replace_acl()
1284 newpxdesc->acl.ace[i + offset] = oldpxdesc->acl.ace[i + oldoffset]; in ntfs_replace_acl()
1287 posix_header(newpxdesc, oldpxdesc->mode); in ntfs_replace_acl()
/third_party/ntfs-3g/include/ntfs-3g/
Dacls.h157 struct POSIX_SECURITY *ntfs_replace_acl(const struct POSIX_SECURITY *oldpxdesc,
/third_party/ntfs-3g/ntfsprogs/
Dntfssecaudit.c2575 struct POSIX_SECURITY *oldpxdesc; in tryposix() local
2580 oldpxdesc = linux_permissions_posix(oldattr, isdir); in tryposix()
2581 newpxdesc = ntfs_merge_descr_posix(pxdesc, oldpxdesc); in tryposix()
2584 free(oldpxdesc); in tryposix()
3808 struct POSIX_SECURITY *oldpxdesc; in setfull_posix() local
3831 oldpxdesc = linux_permissions_posix(attr, isdir); in setfull_posix()
3834 showposix(oldpxdesc); in setfull_posix()
3836 if (oldpxdesc) { in setfull_posix()
3840 if (!ntfs_merge_mode_posix(oldpxdesc,pxdesc->mode)) in setfull_posix()
3841 newpxdesc = oldpxdesc; in setfull_posix()
[all …]