Skip Navigation Links | |
Exit Print View | |
![]() |
man pages section 3: Extended Library Functions Oracle Solaris 10 8/11 Information Library |
Extended Library Functions - Part 1
ct_event_read_critical(3CONTRACT)
ct_pr_event_get_exitstatus(3CONTRACT)
ct_pr_event_get_gcorefile(3CONTRACT)
ct_pr_event_get_pcorefile(3CONTRACT)
ct_pr_event_get_pid(3CONTRACT)
ct_pr_event_get_ppid(3CONTRACT)
ct_pr_event_get_sender(3CONTRACT)
ct_pr_event_get_senderct(3CONTRACT)
ct_pr_event_get_signal(3CONTRACT)
ct_pr_event_get_zcorefile(3CONTRACT)
ct_pr_status_get_contracts(3CONTRACT)
ct_pr_status_get_fatal(3CONTRACT)
ct_pr_status_get_members(3CONTRACT)
ct_pr_status_get_param(3CONTRACT)
ct_pr_tmpl_get_fatal(3CONTRACT)
ct_pr_tmpl_get_param(3CONTRACT)
ct_pr_tmpl_get_transfer(3CONTRACT)
ct_pr_tmpl_set_fatal(3CONTRACT)
ct_pr_tmpl_set_param(3CONTRACT)
ct_pr_tmpl_set_transfer(3CONTRACT)
ct_status_get_cookie(3CONTRACT)
ct_status_get_critical(3CONTRACT)
ct_status_get_holder(3CONTRACT)
ct_status_get_informative(3CONTRACT)
ct_status_get_nevents(3CONTRACT)
ct_status_get_nevid(3CONTRACT)
ct_status_get_ntime(3CONTRACT)
ct_status_get_qtime(3CONTRACT)
ct_status_get_state(3CONTRACT)
ct_status_get_zoneid(3CONTRACT)
ct_tmpl_get_critical(3CONTRACT)
ct_tmpl_get_informative(3CONTRACT)
ct_tmpl_set_critical(3CONTRACT)
ct_tmpl_set_informative(3CONTRACT)
dat_evd_clear_unwaitable(3DAT)
dat_get_consumer_context(3DAT)
Extended Library Functions - Part 2
Extended Library Functions - Part 3
Extended Library Functions - Part 4
- check the validity of an ACL
cc [ flag... ] file... -lsec [ library... ] #include <sys/acl.h> int aclcheck(aclent_t *aclbufp, int nentries, int *which);
The aclcheck() function checks the validity of an ACL pointed to by aclbufp. The nentries argument is the number of entries contained in the buffer. The which parameter returns the index of the first entry that is invalid.
The function verifies that an ACL pointed to by aclbufp is valid according to the following rules:
There must be exactly one GROUP_OBJ ACL entry.
There must be exactly one USER_OBJ ACL entry.
There must be exactly one OTHER_OBJ ACL entry.
If there are any GROUP ACL entries, then the group ID in each group ACL entry must be unique.
If there are any USER ACL entries, then the user ID in each user ACL entry must be unique.
If there are any GROUP or USER ACL entries, then there must be exactly one CLASS_OBJ (ACL mask) entry.
If there are any default ACL entries, then the following apply:
There must be exactly one default GROUP_OBJ ACL entry.
There must be exactly one default OTHER_OBJ ACL entry.
There must be exactly one default USER_OBJ ACL entry.
If there are any DEF_GROUP entries, then the group ID in each DEF_GROUP ACL entry must be unique.
If there are any DEF_USER entries, then the user ID in each DEF_USER ACL entry must be unique.
If there are any DEF_GROUP or DEF_USER entries, then there must be exactly one DEF_CLASS_OBJ (default ACL mask) entry.
If any of the above rules are violated, then the function fails with errno set to EINVAL.
If the ACL is valid, alcheck() will return 0. Otherwise errno is set to EINVAL and return code is set to one of the following:
There is more than one GROUP_OBJ or DEF_GROUP_OBJ ACL entry.
There is more than one USER_OBJ or DEF_USER_OBJ ACL entry.
There is more than one CLASS_OBJ (ACL mask) or DEF_CLASS_OBJ (default ACL mask) entry.
There is more than one OTHER_OBJ or DEF_OTHER_OBJ ACL entry.
Duplicate entries of USER, GROUP, DEF_USER, or DEF_GROUP.
The entry type is invalid.
Missing an entry. The which parameter returns -1 in this case.
The system cannot allocate any memory. The which parameter returns -1 in this case.
See attributes(5) for descriptions of the following attributes:
|