ssu
Loading...
Searching...
No Matches
ssuconfperm
ssuconfperm.c
Go to the documentation of this file.
1
11
12
#include <sys/stat.h>
13
#include <unistd.h>
14
15
#include "
../constants.h
"
16
17
int
main(
int
argc,
char
**argv)
18
{
19
struct
stat sb;
20
21
if
(!stat(
SSU_CONFIGURATION
, &sb)){
22
chown(
SSU_CONFIGURATION
, 0,
SSU_GROUP_ID
);
23
chmod(
SSU_CONFIGURATION
, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH);
24
}
25
}
constants.h
SSU_GROUP_ID
#define SSU_GROUP_ID
The group ID ssu expects to run as. This is usually the GID of the main phone user.
Definition
constants.h:12
SSU_CONFIGURATION
#define SSU_CONFIGURATION
Path to the main ssu configuration file.
Definition
ssucoreconfig_p.h:17
Generated by
1.16.1