entry as a mask on all following allow entries. Finally, delete
the Everyone DENY entry (we have applied it to everything possible).
- In addition, in this pass we remove any DENY entries that have
+ In addition, in this pass we remove any DENY entries that have
no permissions (ie. they are a DENY nothing).
---------------------------------------------------------------------------
Second pass - only deal with deny user entries.
for (allow_ace_p = curr_ace->next; allow_ace_p; allow_ace_p = allow_ace_p->next) {
- /*
+ /*
* Only mask off allow entries.
*/
process_deny_list(fsp->conn, &dir_ace);
/*
- * A well formed POSIX file or default ACL has at least 3 entries, a
+ * A well formed POSIX file or default ACL has at least 3 entries, a
* SMB_ACL_USER_OBJ, SMB_ACL_GROUP_OBJ, SMB_ACL_OTHER_OBJ
* and optionally a mask entry. Ensure this is the case.
*/
}
/****************************************************************************
-
+
****************************************************************************/
SMB_ACL_T free_empty_sys_acl(connection_struct *conn, SMB_ACL_T the_acl)
Try to chown a file. We will be able to chown it under the following conditions.
1) If we have root privileges, then it will just work.
- 2) If we have SeRestorePrivilege we can change the user + group to any other user.
+ 2) If we have SeRestorePrivilege we can change the user + group to any other user.
3) If we have SeTakeOwnershipPrivilege we can change the user to the current user.
4) If we have write permission to the file and dos_filemodes is set
then allow chown to the currently authenticated user.
/*
* If this is a simple 3 element ACL or no elements then it's a standard
- * UNIX permission set. Just use chmod...
+ * UNIX permission set. Just use chmod...
*/
if ((num_entries == 3) || (num_entries == 0))