new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git] / src / headers / privsep_op.h
old mode 100755 (executable)
new mode 100644 (file)
index b3e8683..069e425
@@ -1,30 +1,28 @@
-/* @(#) $Id: privsep_op.h,v 1.6 2009/06/24 17:06:26 dcid Exp $ */
-
 /* Copyright (C) 2009 Trend Micro Inc.
  * All right reserved.
  *
  * This program is a free software; you can redistribute it
  * and/or modify it under the terms of the GNU General Public
- * License (version 3) as published by the FSF - Free Software
+ * License (version 2) as published by the FSF - Free Software
  * Foundation
  */
 
-/* Functions for privilege separation.
- */
+/* Functions for privilege separation */
 
 #ifndef __PRIV_H
-
 #define __PRIV_H
+
 #include "shared.h"
 
-int Privsep_GetUser(char * name);
+uid_t Privsep_GetUser(const char *name) __attribute__((nonnull));
 
-int Privsep_GetGroup(char * name);
+gid_t Privsep_GetGroup(const char *name) __attribute__((nonnull));
 
 int Privsep_SetUser(uid_t uid);
 
 int Privsep_SetGroup(gid_t gid);
 
-int Privsep_Chroot(char * path);
+int Privsep_Chroot(const char *path) __attribute__((nonnull));
 
 #endif
+