From 98f593f0b828d7c55e7b62509ef10f06a25844f1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Sat, 19 Oct 2013 17:41:48 +0200 Subject: [PATCH] Playing with security identities. --- run.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/run.cpp b/run.cpp index ee2fd5c..fbd8520 100644 --- a/run.cpp +++ b/run.cpp @@ -61,6 +61,25 @@ int main(int argc, char *argv[]) { dmlite::StackInstance stack(&manager); +#if 0 + { + dmlite::SecurityContext root; + dmlite::UserInfo user; + dmlite::GroupInfo group; + + user.name = "root"; + user["uid"] = 0; + + group.name = "wheel"; + group["gid"] = 0; + + root.user = user; + root.groups.push_back(group); + + stack.setSecurityContext(root); + } +#endif +#if 1 // Set security credentials dmlite::SecurityCredentials creds; @@ -74,6 +93,7 @@ int main(int argc, char *argv[]) { << "Reason: " << e.what() << std::endl; return 1; } +#endif // Action dmlite::Catalog* catalog = stack.getCatalog(); -- 1.8.2.3