the_acl            30 examples/libsmbclient/testacl.c     static char *the_acl = NULL;
the_acl           100 examples/libsmbclient/testacl.c             the_acl = strdup(poptGetOptArg(pc));
the_acl           105 examples/libsmbclient/testacl.c             the_acl = strdup(poptGetOptArg(pc));
the_acl           110 examples/libsmbclient/testacl.c             the_acl = strdup(poptGetOptArg(pc));
the_acl           115 examples/libsmbclient/testacl.c             the_acl = strdup(poptGetOptArg(pc));
the_acl           120 examples/libsmbclient/testacl.c             the_acl = strdup(poptGetOptArg(pc));
the_acl           125 examples/libsmbclient/testacl.c             the_acl = strdup(poptGetOptArg(pc));
the_acl           130 examples/libsmbclient/testacl.c             the_acl = strdup(poptGetOptArg(pc));
the_acl           186 examples/libsmbclient/testacl.c             if (the_acl == NULL)
the_acl           190 examples/libsmbclient/testacl.c                     the_acl = "system.*";
the_acl           194 examples/libsmbclient/testacl.c                     the_acl = "system.*+";
the_acl           197 examples/libsmbclient/testacl.c             ret = smbc_getxattr(path, the_acl, value, sizeof(value));
the_acl           233 examples/libsmbclient/testacl.c                  numeric ? "" : "+", the_acl);
the_acl           234 examples/libsmbclient/testacl.c         the_acl = value;
the_acl           241 examples/libsmbclient/testacl.c                  numeric ? "" : "+", the_acl);
the_acl           242 examples/libsmbclient/testacl.c         the_acl = value;
the_acl           251 examples/libsmbclient/testacl.c         if ((p = strchr(the_acl, ':')) == NULL)
the_acl           259 examples/libsmbclient/testacl.c         ret = smbc_setxattr(path, the_acl, p, strlen(p), flags);
the_acl           269 examples/libsmbclient/testacl.c         ret = smbc_removexattr(path, the_acl);
the_acl           273 examples/libsmbclient/testacl.c                    the_acl, path, errno, strerror(errno));
the_acl            29 examples/libsmbclient/testacl2.c     static char *the_acl = NULL;
the_acl            44 examples/libsmbclient/testacl2.c     the_acl = strdup("system.nt_sec_desc.*");
the_acl            45 examples/libsmbclient/testacl2.c     ret = smbc_getxattr(argv[1], the_acl, value, sizeof(value));
the_acl            58 examples/libsmbclient/testacl2.c     ret = smbc_setxattr(argv[1], the_acl, value, strlen(value), flags);
the_acl            69 examples/libsmbclient/testacl2.c     ret = smbc_setxattr(argv[1], the_acl, value, strlen(value), flags);
the_acl            21 examples/libsmbclient/testacl3.c     char *          the_acl;
the_acl            49 examples/libsmbclient/testacl3.c         the_acl = strdup("system.nt_sec_desc.*+");
the_acl            50 examples/libsmbclient/testacl3.c         ret = smbc_getxattr(path, the_acl, value, sizeof(value));
the_acl          6748 source3/include/proto.h SMB_ACL_T free_empty_sys_acl(connection_struct *conn, SMB_ACL_T the_acl);
the_acl           557 source3/lib/secdesc.c 	SEC_ACL *new_dacl = NULL, *the_acl = NULL;
the_acl           568 source3/lib/secdesc.c 	the_acl = parent_ctr->dacl;
the_acl           570 source3/lib/secdesc.c 	if (the_acl->num_aces) {
the_acl           571 source3/lib/secdesc.c 		if (2*the_acl->num_aces < the_acl->num_aces) {
the_acl           576 source3/lib/secdesc.c 						2*the_acl->num_aces))) {
the_acl           583 source3/lib/secdesc.c 	for (i = 0; i < the_acl->num_aces; i++) {
the_acl           584 source3/lib/secdesc.c 		const SEC_ACE *ace = &the_acl->aces[i];
the_acl           145 source3/libsmb/libsmb_xattr.c sort_acl(SEC_ACL *the_acl)
the_acl           148 source3/libsmb/libsmb_xattr.c 	if (!the_acl) return;
the_acl           150 source3/libsmb/libsmb_xattr.c 	qsort(the_acl->aces, the_acl->num_aces, sizeof(the_acl->aces[0]),
the_acl           153 source3/libsmb/libsmb_xattr.c 	for (i=1;i<the_acl->num_aces;) {
the_acl           154 source3/libsmb/libsmb_xattr.c 		if (sec_ace_equal(&the_acl->aces[i-1], &the_acl->aces[i])) {
the_acl           156 source3/libsmb/libsmb_xattr.c 			for (j=i; j<the_acl->num_aces-1; j++) {
the_acl           157 source3/libsmb/libsmb_xattr.c 				the_acl->aces[j] = the_acl->aces[j+1];
the_acl           159 source3/libsmb/libsmb_xattr.c 			the_acl->num_aces--;
the_acl           395 source3/libsmb/libsmb_xattr.c add_ace(SEC_ACL **the_acl,
the_acl           402 source3/libsmb/libsmb_xattr.c 	if (! *the_acl) {
the_acl           403 source3/libsmb/libsmb_xattr.c 		(*the_acl) = make_sec_acl(ctx, 3, 1, ace);
the_acl           408 source3/libsmb/libsmb_xattr.c                                      1+(*the_acl)->num_aces)) == NULL) {
the_acl           411 source3/libsmb/libsmb_xattr.c 	memcpy(aces, (*the_acl)->aces, (*the_acl)->num_aces * sizeof(SEC_ACE));
the_acl           412 source3/libsmb/libsmb_xattr.c 	memcpy(aces+(*the_acl)->num_aces, ace, sizeof(SEC_ACE));
the_acl           413 source3/libsmb/libsmb_xattr.c 	newacl = make_sec_acl(ctx, (*the_acl)->revision,
the_acl           414 source3/libsmb/libsmb_xattr.c                               1+(*the_acl)->num_aces, aces);
the_acl           416 source3/libsmb/libsmb_xattr.c 	(*the_acl) = newacl;
the_acl          1506 source3/libsmb/libsmb_xattr.c 	char *the_acl,
the_acl          1525 source3/libsmb/libsmb_xattr.c         if (the_acl) {
the_acl          1526 source3/libsmb/libsmb_xattr.c                 numeric = ((p = strchr(the_acl, ':')) != NULL &&
the_acl          1527 source3/libsmb/libsmb_xattr.c                            p > the_acl &&
the_acl          1531 source3/libsmb/libsmb_xattr.c                 if (*the_acl == '*') {
the_acl          1533 source3/libsmb/libsmb_xattr.c                         the_acl = p + 1;
the_acl          1536 source3/libsmb/libsmb_xattr.c                 sd = sec_desc_parse(ctx, ipc_cli, pol, numeric, the_acl);
the_acl          5567 source3/printing/nt_printing.c 		SEC_ACL *the_acl = (*secdesc_ctr)->sd->dacl;
the_acl          5571 source3/printing/nt_printing.c 			   sharename, the_acl->num_aces));
the_acl          5573 source3/printing/nt_printing.c 		for (i = 0; i < the_acl->num_aces; i++) {
the_acl          5575 source3/printing/nt_printing.c 				   sid_string_dbg(&the_acl->aces[i].trustee),
the_acl          5576 source3/printing/nt_printing.c 				   the_acl->aces[i].type, the_acl->aces[i].flags,
the_acl          5577 source3/printing/nt_printing.c 				   the_acl->aces[i].access_mask));
the_acl          5821 source3/rpc_server/srv_spoolss_nt.c 		SEC_ACL *the_acl;
the_acl          5824 source3/rpc_server/srv_spoolss_nt.c 		the_acl = old_secdesc_ctr->sd->dacl;
the_acl          5826 source3/rpc_server/srv_spoolss_nt.c 			   PRINTERNAME(snum), the_acl->num_aces));
the_acl          5828 source3/rpc_server/srv_spoolss_nt.c 		for (i = 0; i < the_acl->num_aces; i++) {
the_acl          5830 source3/rpc_server/srv_spoolss_nt.c 					   &the_acl->aces[i].trustee),
the_acl          5831 source3/rpc_server/srv_spoolss_nt.c 				  the_acl->aces[i].access_mask));
the_acl          5834 source3/rpc_server/srv_spoolss_nt.c 		the_acl = secdesc_ctr->sd->dacl;
the_acl          5836 source3/rpc_server/srv_spoolss_nt.c 		if (the_acl) {
the_acl          5838 source3/rpc_server/srv_spoolss_nt.c 				   PRINTERNAME(snum), the_acl->num_aces));
the_acl          5840 source3/rpc_server/srv_spoolss_nt.c 			for (i = 0; i < the_acl->num_aces; i++) {
the_acl          5842 source3/rpc_server/srv_spoolss_nt.c 						   &the_acl->aces[i].trustee),
the_acl          5843 source3/rpc_server/srv_spoolss_nt.c 					   the_acl->aces[i].access_mask));
the_acl          2580 source3/smbd/posix_acls.c 	SMB_ACL_T the_acl = SMB_VFS_SYS_ACL_INIT(conn, (int)count_canon_ace_list(the_ace) + 1);
the_acl          2595 source3/smbd/posix_acls.c 	if (the_acl == NULL) {
the_acl          2638 source3/smbd/posix_acls.c 		if (SMB_VFS_SYS_ACL_CREATE_ENTRY(conn, &the_acl, &the_entry) == -1) {
the_acl          2715 source3/smbd/posix_acls.c 		if (SMB_VFS_SYS_ACL_CREATE_ENTRY(conn, &the_acl, &mask_entry) == -1) {
the_acl          2746 source3/smbd/posix_acls.c 		if (SMB_VFS_SYS_ACL_SET_FILE(conn, fsp->fsp_name, the_acl_type, the_acl) == -1) {
the_acl          2762 source3/smbd/posix_acls.c 				sret = SMB_VFS_SYS_ACL_SET_FILE(conn, fsp->fsp_name, the_acl_type, the_acl);
the_acl          2777 source3/smbd/posix_acls.c 		if (SMB_VFS_SYS_ACL_SET_FD(fsp, the_acl) == -1) {
the_acl          2793 source3/smbd/posix_acls.c 				sret = SMB_VFS_SYS_ACL_SET_FD(fsp, the_acl);
the_acl          2812 source3/smbd/posix_acls.c 	if (the_acl != NULL) {
the_acl          2813 source3/smbd/posix_acls.c 		SMB_VFS_SYS_ACL_FREE_ACL(conn, the_acl);
the_acl          2839 source3/smbd/posix_acls.c SMB_ACL_T free_empty_sys_acl(connection_struct *conn, SMB_ACL_T the_acl)
the_acl          2843 source3/smbd/posix_acls.c 	if (!the_acl)
the_acl          2845 source3/smbd/posix_acls.c 	if (SMB_VFS_SYS_ACL_GET_ENTRY(conn, the_acl, SMB_ACL_FIRST_ENTRY, &entry) != 1) {
the_acl          2846 source3/smbd/posix_acls.c 		SMB_VFS_SYS_ACL_FREE_ACL(conn, the_acl);
the_acl          2849 source3/smbd/posix_acls.c 	return the_acl;
the_acl          4220 source3/smbd/posix_acls.c 	SMB_ACL_T the_acl = SMB_VFS_SYS_ACL_INIT(conn, num_acls);
the_acl          4222 source3/smbd/posix_acls.c 	if (the_acl == NULL) {
the_acl          4231 source3/smbd/posix_acls.c 		if (SMB_VFS_SYS_ACL_CREATE_ENTRY(conn, &the_acl, &the_entry) == -1) {
the_acl          4291 source3/smbd/posix_acls.c 	return the_acl;
the_acl          4295 source3/smbd/posix_acls.c 	if (the_acl != NULL) {
the_acl          4296 source3/smbd/posix_acls.c 		SMB_VFS_SYS_ACL_FREE_ACL(conn, the_acl);
the_acl           339 source3/utils/sharesec.c static bool add_ace(TALLOC_CTX *mem_ctx, SEC_ACL **the_acl, SEC_ACE *ace)
the_acl           343 source3/utils/sharesec.c 	if (! *the_acl) {
the_acl           344 source3/utils/sharesec.c 		return (((*the_acl) = make_sec_acl(mem_ctx, 3, 1, ace)) != NULL);
the_acl           347 source3/utils/sharesec.c 	if (!(aces = SMB_CALLOC_ARRAY(SEC_ACE, 1+(*the_acl)->num_aces))) {
the_acl           350 source3/utils/sharesec.c 	memcpy(aces, (*the_acl)->aces, (*the_acl)->num_aces * sizeof(SEC_ACE));
the_acl           351 source3/utils/sharesec.c 	memcpy(aces+(*the_acl)->num_aces, ace, sizeof(SEC_ACE));
the_acl           352 source3/utils/sharesec.c 	new_ace = make_sec_acl(mem_ctx,(*the_acl)->revision,1+(*the_acl)->num_aces, aces);
the_acl           354 source3/utils/sharesec.c 	(*the_acl) = new_ace;
the_acl           386 source3/utils/sharesec.c static void sort_acl(SEC_ACL *the_acl)
the_acl           389 source3/utils/sharesec.c 	if (!the_acl) return;
the_acl           391 source3/utils/sharesec.c 	qsort(the_acl->aces, the_acl->num_aces, sizeof(the_acl->aces[0]), QSORT_CAST ace_compare);
the_acl           393 source3/utils/sharesec.c 	for (i=1;i<the_acl->num_aces;) {
the_acl           394 source3/utils/sharesec.c 		if (sec_ace_equal(&the_acl->aces[i-1], &the_acl->aces[i])) {
the_acl           396 source3/utils/sharesec.c 			for (j=i; j<the_acl->num_aces-1; j++) {
the_acl           397 source3/utils/sharesec.c 				the_acl->aces[j] = the_acl->aces[j+1];
the_acl           399 source3/utils/sharesec.c 			the_acl->num_aces--;
the_acl           407 source3/utils/sharesec.c static int change_share_sec(TALLOC_CTX *mem_ctx, const char *sharename, char *the_acl, enum acl_mode mode)
the_acl           423 source3/utils/sharesec.c 	    !(sd = parse_acl_string(mem_ctx, the_acl, &sd_size )) ) {
the_acl           517 source3/utils/sharesec.c 	static char *the_acl = NULL;
the_acl           525 source3/utils/sharesec.c 		{ "remove", 'r', POPT_ARG_STRING, &the_acl, 'r', "Remove ACEs", "ACL" },
the_acl           526 source3/utils/sharesec.c 		{ "modify", 'm', POPT_ARG_STRING, &the_acl, 'm', "Modify existing ACEs", "ACL" },
the_acl           527 source3/utils/sharesec.c 		{ "add", 'a', POPT_ARG_STRING, &the_acl, 'a', "Add ACEs", "ACL" },
the_acl           528 source3/utils/sharesec.c 		{ "replace", 'R', POPT_ARG_STRING, &the_acl, 'R', "Overwrite share permission ACL", "ACLS" },
the_acl           555 source3/utils/sharesec.c 			the_acl = smb_xstrdup(poptGetOptArg(pc));
the_acl           560 source3/utils/sharesec.c 			the_acl = smb_xstrdup(poptGetOptArg(pc));
the_acl           565 source3/utils/sharesec.c 			the_acl = smb_xstrdup(poptGetOptArg(pc));
the_acl           570 source3/utils/sharesec.c 			the_acl = smb_xstrdup(poptGetOptArg(pc));
the_acl           633 source3/utils/sharesec.c 	retval = change_share_sec(ctx, sharename, the_acl, mode);
the_acl           528 source3/utils/smbcacls.c static bool add_ace(SEC_ACL **the_acl, SEC_ACE *ace)
the_acl           532 source3/utils/smbcacls.c 	if (! *the_acl) {
the_acl           533 source3/utils/smbcacls.c 		return (((*the_acl) = make_sec_acl(talloc_tos(), 3, 1, ace))
the_acl           537 source3/utils/smbcacls.c 	if (!(aces = SMB_CALLOC_ARRAY(SEC_ACE, 1+(*the_acl)->num_aces))) {
the_acl           540 source3/utils/smbcacls.c 	memcpy(aces, (*the_acl)->aces, (*the_acl)->num_aces * sizeof(SEC_ACE));
the_acl           541 source3/utils/smbcacls.c 	memcpy(aces+(*the_acl)->num_aces, ace, sizeof(SEC_ACE));
the_acl           542 source3/utils/smbcacls.c 	new_ace = make_sec_acl(talloc_tos(),(*the_acl)->revision,1+(*the_acl)->num_aces, aces);
the_acl           544 source3/utils/smbcacls.c 	(*the_acl) = new_ace;
the_acl           791 source3/utils/smbcacls.c static void sort_acl(SEC_ACL *the_acl)
the_acl           794 source3/utils/smbcacls.c 	if (!the_acl) return;
the_acl           796 source3/utils/smbcacls.c 	qsort(the_acl->aces, the_acl->num_aces, sizeof(the_acl->aces[0]), QSORT_CAST ace_compare);
the_acl           798 source3/utils/smbcacls.c 	for (i=1;i<the_acl->num_aces;) {
the_acl           799 source3/utils/smbcacls.c 		if (sec_ace_equal(&the_acl->aces[i-1], &the_acl->aces[i])) {
the_acl           801 source3/utils/smbcacls.c 			for (j=i; j<the_acl->num_aces-1; j++) {
the_acl           802 source3/utils/smbcacls.c 				the_acl->aces[j] = the_acl->aces[j+1];
the_acl           804 source3/utils/smbcacls.c 			the_acl->num_aces--;
the_acl           816 source3/utils/smbcacls.c 		    char *the_acl, enum acl_mode mode)
the_acl           824 source3/utils/smbcacls.c 	sd = sec_desc_parse(talloc_tos(), cli, the_acl);
the_acl          1015 source3/utils/smbcacls.c 	static char *the_acl = NULL;
the_acl          1071 source3/utils/smbcacls.c 			the_acl = smb_xstrdup(poptGetOptArg(pc));
the_acl          1076 source3/utils/smbcacls.c 			the_acl = smb_xstrdup(poptGetOptArg(pc));
the_acl          1081 source3/utils/smbcacls.c 			the_acl = smb_xstrdup(poptGetOptArg(pc));
the_acl          1086 source3/utils/smbcacls.c 			the_acl = smb_xstrdup(poptGetOptArg(pc));
the_acl          1161 source3/utils/smbcacls.c 	} else if (the_acl) {
the_acl          1162 source3/utils/smbcacls.c 		result = cacl_set(cli, filename, the_acl, mode);