|
2026-11-27
| ||
| 15:25 | • Pending ticket [623585ffff]: file mkdir does not use default acl plus 4 ot... artifact: ef53a4f82f user: jan.nijtmans | |
| 15:24 | • Ticket [623585ffff]: 7 changes artifact: bace223174 user: jan.nijtmans | |
| 14:21 | Fix [cd609219f5] and [623585ffff]: Call mkdir(path, 0777) and let the kernel apply the umask or ACL check-in: 14f40fe36f user: jan.nijtmans tags: trunk, main | |
|
2026-10-17
| ||
| 09:00 | • Ticket [623585ffff] file mkdir does not use default acl status still Open ... artifact: 9ed74cfc29 user: serhiy.storchaka | |
| 09:00 | • Ticket [cd609219f5] directory creation temporarily changes the umask status ... artifact: e5372f042e user: serhiy.storchaka | |
| 08:58 | Fix [cd609219f5] and [623585ffff]: [file mkdir] read the umask with umask(0) + umask(mode), which th... closed check-in: 5d7e74108f user: serhiy.storchaka tags: mkdir-no-umask-call | |
|
2002-10-15
| ||
| 23:07 | • Ticket [623585ffff] file mkdir does not use default acl status still Open ... artifact: 5bc10e1568 user: vincentdarley | |
| 22:39 | • Ticket [623585ffff]: 2 changes artifact: 26148b1925 user: dkf | |
| 22:25 | • Add attachment tcl-acl-test to ticket [623585ffff] artifact: 111ede1da5 user: wffiii | |
| 22:25 | • Ticket [623585ffff] file mkdir does not use default acl status still Open ... artifact: b86336f64c user: wffiii | |
| 15:25 | • New ticket [623585ffff]. artifact: c09b057225 user: wffiii | |
[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]