Print this page
12288 getfacl and setfacl could stand improvement


  43                o      There must be exactly one default GROUP_OBJ ACL entry.
  44 
  45                o      There must be exactly one default OTHER_OBJ ACL entry.
  46 
  47                o      There must be exactly one default USER_OBJ ACL entry.
  48 
  49                o      If there are any DEF_GROUP entries, then the group ID in
  50                       each DEF_GROUP ACL entry must be unique.
  51 
  52                o      If there are any DEF_USER entries, then the user ID in
  53                       each DEF_USER ACL entry must be unique.
  54 
  55                o      If there are any DEF_GROUP or DEF_USER entries, then
  56                       there must be exactly one DEF_CLASS_OBJ (default ACL
  57                       mask) entry.
  58 
  59            o      If any of the above rules are violated, then the function
  60                   fails with errno set to  EINVAL.
  61 
  62 RETURN VALUES
  63        If the ACL is valid, alcheck() will return 0. Otherwise errno is set to
  64        EINVAL and return code is set to one of the following:
  65 
  66        GRP_ERROR
  67                           There is more than one GROUP_OBJ or DEF_GROUP_OBJ
  68                           ACL entry.
  69 
  70 
  71        USER_ERROR
  72                           There is more than one USER_OBJ or DEF_USER_OBJ ACL
  73                           entry.
  74 
  75 
  76        CLASS_ERROR
  77                           There is more than one CLASS_OBJ (ACL mask) or
  78                           DEF_CLASS_OBJ (default ACL mask) entry.
  79 
  80 
  81        OTHER_ERROR
  82                           There is more than one OTHER_OBJ or DEF_OTHER_OBJ
  83                           ACL entry.
  84 




  43                o      There must be exactly one default GROUP_OBJ ACL entry.
  44 
  45                o      There must be exactly one default OTHER_OBJ ACL entry.
  46 
  47                o      There must be exactly one default USER_OBJ ACL entry.
  48 
  49                o      If there are any DEF_GROUP entries, then the group ID in
  50                       each DEF_GROUP ACL entry must be unique.
  51 
  52                o      If there are any DEF_USER entries, then the user ID in
  53                       each DEF_USER ACL entry must be unique.
  54 
  55                o      If there are any DEF_GROUP or DEF_USER entries, then
  56                       there must be exactly one DEF_CLASS_OBJ (default ACL
  57                       mask) entry.
  58 
  59            o      If any of the above rules are violated, then the function
  60                   fails with errno set to EINVAL.
  61 
  62 RETURN VALUES
  63        If the ACL is valid, aclcheck() will return 0. Otherwise errno is set
  64        to EINVAL and aclcheck() will return one of the following:
  65 
  66        GRP_ERROR
  67                           There is more than one GROUP_OBJ or DEF_GROUP_OBJ
  68                           ACL entry.
  69 
  70 
  71        USER_ERROR
  72                           There is more than one USER_OBJ or DEF_USER_OBJ ACL
  73                           entry.
  74 
  75 
  76        CLASS_ERROR
  77                           There is more than one CLASS_OBJ (ACL mask) or
  78                           DEF_CLASS_OBJ (default ACL mask) entry.
  79 
  80 
  81        OTHER_ERROR
  82                           There is more than one OTHER_OBJ or DEF_OTHER_OBJ
  83                           ACL entry.
  84