]> git.armaanb.net Git - opendoas.git/blobdiff - libopenbsd/setusercontext.c
Add configure script
[opendoas.git] / libopenbsd / setusercontext.c
index 7a477b607356d384b5ede73536ef38487c29bffe..6b05dd5da44f43149a208a2d2867e9bde36ba2e2 100644 (file)
@@ -1,4 +1,18 @@
-/* Copyright 2015 Nathan Holstein */
+/*
+ * Copyright (c) 2015 Nathan Holstein <nathan.holstein@gmail.com>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
 
 #include <sys/resource.h>
 #include <sys/stat.h>
@@ -7,8 +21,9 @@
 #include <pwd.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <grp.h>
 
-#include "openbsd.h"
+#include "includes.h"
 
 int
 setusercontext(login_cap_t *lc, struct passwd *pw, uid_t uid, unsigned int flags)