[file mkdir] does not use default acl
Pending623585ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 5 days ago
Descriptionplain2002-10-15 15:25:19
When creating a subdirectory in a directory with default acl's, these defaults are not applied to the new subdirectory. One would expect that the default acl's would be applied to new subdirs however they are created. We are using tcl versions 8.2 and 8.4 We have tested this with Solaris 8 & 9 We can test other versions of Solaris and tcl as needed. I used the script command to log commands and output while running one test. I've attached the output from the script command. If the attachment fails, I'll be happy to email/ftp/whatever the file. Test procedure in a nutshell: 1. create a test dir 2. set default acl's 3. create a subdir in the test dir using [file mkdir] 4. look at the acl's for the subdir
Referenced by3
14f40fe36fFix [cd609219f5] and [623585ffff]: Call mkdir(path, 0777) and let the kernel apply the umask or ACL check-in2026-11-27 14:21:19e5372f042eTicket [cd609219f5] directory creation temporarily changes the umask status still Open with 4 other changes ticket2026-10-17 09:00:115d7e74108fFix [cd609219f5] and [623585ffff]: [file mkdir] read the umask with umask(0) + umask(mode), which threads could leave at 0 for the whole process, and masked the mode itself, which overrode a default ACL of the parent directory. Call mkdir(path, 0777) and let the kernel apply the umask or ACL. check-in2026-10-17 08:58:08
wffiiiplain2002-10-15 22:25:19
File Added - 33124: tcl-acl-test
dkf Ticket [623585ffff]: 2 changes
[History diff]2002-10-15 22:39:28
vincentdarleyplain2002-10-15 23:07:15
Logged In: YES user_id=32170 Luckily, I don't know what an 'acl' is (apart from something in your knee), so I'm having to reassign this to someone else.
serhiy.storchakawiki2026-10-17 09:00:11
Still present on Linux: DoCreateDirectory() applies the umask to the mode itself, and when the parent has a default ACL (so the kernel does not apply the umask) this mode cuts down the inherited permissions. Proposed fix in branch mkdir-no-umask-call, with [cd609219f5]: call mkdir(path, 0777) and let the kernel apply the umask or ACL, as mkdir(1) does. Test unixFCmd-21.1.
jan.nijtmanswiki2026-11-27 15:24:59
Merged to [trunk]
jan.nijtmans Pending ticket [623585ffff].
[History diff]2026-11-27 15:25:16
Log in (anonymous is fine) to add a comment.
Attachments:
- tcl-acl-test [download] added by wffiii on 2002-10-15 22:25:19. [details]