aboutsummaryrefslogtreecommitdiffstats
path: root/idmap_plugin.h
diff options
context:
space:
mode:
authorJeff Layton <jlayton@samba.org>2012-12-07 12:17:03 -0500
committerJeff Layton <jlayton@samba.org>2012-12-19 13:20:28 -0500
commit4a895bf49d80f6592cc42d2487103e314b5aa888 (patch)
tree603a0d22db16b74df193199f7f20f0ec7396a2d6 /idmap_plugin.h
parent6a25042ae1f010d7ea0852c8245b481c31d9789d (diff)
downloadcifs-utils-4a895bf49d80f6592cc42d2487103e314b5aa888.tar.gz
cifs-utils-4a895bf49d80f6592cc42d2487103e314b5aa888.tar.xz
cifs-utils-4a895bf49d80f6592cc42d2487103e314b5aa888.zip
cifs-utils: convert setcifsacl to use the plugin interface
Add str_to_sid() functionality to the plugin API and have setcifsacl use it. Signed-off-by: Jeff Layton <jlayton@samba.org>
Diffstat (limited to 'idmap_plugin.h')
-rw-r--r--idmap_plugin.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/idmap_plugin.h b/idmap_plugin.h
index 277bb12..51e3a76 100644
--- a/idmap_plugin.h
+++ b/idmap_plugin.h
@@ -43,4 +43,7 @@ extern void exit_plugin(void *handle);
/* Convert cifs_sid to a string. Caller must free *name on success */
extern int sid_to_str(void *handle, const struct cifs_sid *sid, char **name);
+/* Convert string to cifs_sid. */
+extern int str_to_sid(void *handle, const char *name, struct cifs_sid *csid);
+
#endif /* _IDMAP_PLUGIN_H */