| 1224 | */ |
| 1225 | |
| 1226 | static int hpux_get_needed_class_perm(struct acl *aclp) |
| 1227 | { |
| 1228 | switch (aclp->a_type) { |
| 1229 | case USER: |
| 1230 | case GROUP_OBJ: |
| 1231 | case GROUP: |
| 1232 | case DEF_USER_OBJ: |
| 1233 | case DEF_USER: |
| 1234 | case DEF_GROUP_OBJ: |
| 1235 | case DEF_GROUP: |
| 1236 | case DEF_CLASS_OBJ: |
| 1237 | case DEF_OTHER_OBJ: |
| 1238 | return aclp->a_perm; |
| 1239 | default: |
| 1240 | return 0; |
| 1241 | } |
| 1242 | } |
| 1243 | |
| 1244 | /* acl_sort for HPUX. |
| 1245 | * Sorts the array of ACL structures as per the description in |