Bug 15135 - smbcacls generates CONTROL token but it is unable to parse it on set (-S)
Summary: smbcacls generates CONTROL token but it is unable to parse it on set (-S)
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-03 16:15 UTC by Robert Marcano
Modified: 2022-08-03 16:15 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Marcano 2022-08-03 16:15:10 UTC
smbcacls text outputs includes the CONTROL line, but when using -S to restore the output generated by smbcacls, it fails with:

  Failed to parse token 'CONTROL:...' in security descriptor

The sec_desc_parse() function doesn't know how to handle the CONTROL line.

Removing the CONTROL line when setting ACLs with -S works, but this changes the current CONTROL value when generating the text version of the ACLs again.