• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/modules/

Lines Matching refs:acl

37  * The original hpux-acl code in lib/sysacls.c was based upon the
38 * solaris acl code in the same file. Now for the new modularized
39 * acl implementation, I have taken the code from vfs_solarisacls.c
42 * The check for the presence of the acl() call has been adopted, and
59 * are defined inside <sys/acl.h>.
65 /* dl.h: needed to check for acl call via shl_findsym */
68 typedef struct acl HPUX_ACE_T;
69 typedef struct acl *HPUX_ACL_T;
96 /* for convenience: check if hpux acl entry is a default entry? */
125 static BOOL hpux_acl_sort(HPUX_ACL_T acl, int count);
150 /* Looks like we don't have the acl() system call on HPUX.
162 DEBUGADD(10, ("getting %s acl\n",
226 /* Looks like we don't have the acl() system call on HPUX.
234 DEBUG(10, ("invalid smb acl type given (%d).\n", type));
237 DEBUGADD(10, ("setting %s acl\n",
248 * since the hpux acl call stores both the access acl and
249 * the default acl as provided, we have to get the acl part
251 * and concatenate it with the acl provided.
265 DEBUGADD(10, ("getting acl from filesystem\n"));
267 DEBUG(10, ("error getting acl from directory\n"));
270 DEBUG(10, ("adding %s part of fs acl to given acl\n",
277 DEBUG(10, ("error adding other acl.\n"));
289 DEBUG(10, ("resulting acl is not valid!\n"));
292 DEBUG(10, ("resulting acl is valid.\n"));
294 ret = acl(CONST_DISCARD(char *, name), ACL_SET, count, hpux_acl);
296 DEBUG(0, ("ERROR calling acl: %s\n", strerror(errno)));
364 DEBUG(10, ("getting file acl failed!\n"));
374 DEBUG(10, ("resulting acl is not valid!\n"));
377 ret = acl(CONST_DISCARD(char *, path), ACL_SET, count, hpux_acl);
379 DEBUG(10, ("settinge file acl failed!\n"));
405 * Convert the SMB acl to the ACCESS or DEFAULT part of a
422 const struct smb_acl_entry *smb_entry = &(smb_acl->acl[i]);
460 DEBUG(10, ("error adding acl entry\n"));
464 DEBUG(10, ("test, if entry has been copied into acl:\n"));
486 * soaris acl to the SMB_ACL format.
513 smb_entry = &result->acl[result->count];
658 * NOTE: There is a catch here on HP-UX: acl with cmd parameter
660 * pointer as last argument. So we need to use a dummy acl
665 *count = acl(CONST_DISCARD(char *, name), ACL_CNT, 0, &dummy_ace);
667 DEBUG(10, ("acl ACL_CNT failed: %s\n", strerror(errno)));
672 DEBUG(10, ("error allocating memory for hpux acl...\n"));
675 *count = acl(CONST_DISCARD(char *, name), ACL_GET, *count, *hpux_acl);
677 DEBUG(10, ("acl ACL_GET failed: %s\n", strerror(errno)));
696 * being NULL. if the resulting acl is to be checked and is
715 DEBUG(10, ("invalid acl type given: %d\n", type));
726 DEBUG(10, ("error enlarging acl.\n"));
743 * permissions as required by the UnixWare acl() system call.
785 * acl types.
896 static int hpux_get_needed_class_perm(struct acl *aclp)
957 DEBUG(10,("Zero acl count passed. Returning Success\n"));
998 /* We now have proper number of OBJ and DEF_OBJ entries. Now sort the acl
1052 * higher is installed. If acl() was called when it
1054 * so it is important to check this and avoid acl()
1071 ret_val = shl_findsym(&handle, "acl", TYPE_PROCEDURE, &value);
1076 DEBUG(5,("hpux_acl_call_present: acl() system call is not present. Check if you have JFS 3.3 and above?\n"));
1081 DEBUG(10,("hpux_acl_call_present: acl() system call is present. We have JFS 3.3 or above \n"));
1089 * same code as for acl call. if there are more of these,
1121 * acl check function:
1124 * (acl sort just says that the acl is invalid...)
1133 DEBUG(10, ("acl is not valid:\n"));