projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git]
/
src
/
headers
/
privsep_op.h
diff --git
a/src/headers/privsep_op.h
b/src/headers/privsep_op.h
old mode 100755
(executable)
new mode 100644
(file)
index
7a44d2f
..
069e425
--- a/
src/headers/privsep_op.h
+++ b/
src/headers/privsep_op.h
@@
-1,6
+1,3
@@
-/* @(#) $Id: ./src/headers/privsep_op.h, 2011/09/08 dcid Exp $
- */
-
/* Copyright (C) 2009 Trend Micro Inc.
* All right reserved.
*
/* Copyright (C) 2009 Trend Micro Inc.
* All right reserved.
*
@@
-10,22
+7,22
@@
* Foundation
*/
* Foundation
*/
-/* Functions for privilege separation.
- */
+/* Functions for privilege separation */
#ifndef __PRIV_H
#ifndef __PRIV_H
-
#define __PRIV_H
#define __PRIV_H
+
#include "shared.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_SetUser(uid_t uid);
int Privsep_SetGroup(gid_t gid);
-int Privsep_Chroot(char * path);
+int Privsep_Chroot(const char *path) __attribute__((nonnull));
#endif
#endif
+