summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/sec_acl.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2016-03-12 16:39:19 +0100
committerCorinna Vinschen <corinna@vinschen.de>2016-03-12 16:39:19 +0100
commit018fa93e2b9a78edbe58c9d6a281783aff38e527 (patch)
tree1c34d19297cbdf06d5d03dc2d6961eb0d3ffc231 /winsup/cygwin/sec_acl.cc
parent5b972d5b297203a7717a4d8f2058867dfac3ab9e (diff)
downloadcygnal-018fa93e2b9a78edbe58c9d6a281783aff38e527.tar.gz
cygnal-018fa93e2b9a78edbe58c9d6a281783aff38e527.tar.bz2
cygnal-018fa93e2b9a78edbe58c9d6a281783aff38e527.zip
Add cygsid methods to create SIDs from scratch
So far creating cygsids requires to generate an "S-1-..." string which is then converted to a SID by cygsid::getfromstr. Add two new methods: - cygsid::create (DWORD auth, DWORD subauth_count, ...) ... is a variable length list of subauth_count DWORD values being the actual subauths. - cygsid::append (DWORD rid) allows to append a single RID to an alreaday constituted SID. * security.h (cygsid::create): Declare public. (cygsid::append): Ditto. * sec_helper.cc (cygsid::create): Implement. (cygsid::append): Implement. * uinfo.cc (pwdgrp::fetch_account_from_windows): Use both new methods as appropriate. Drop setting csid from string. Create SID strings for printing SIDs only. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/sec_acl.cc')
0 files changed, 0 insertions, 0 deletions