blob: 4a907660fcb65133cf8ccc706705516fa69d9a86 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--- usr/lib/pkcs11/common/loadsave.c.orig 2016-04-29 17:26:45 UTC
+++ usr/lib/pkcs11/common/loadsave.c
@@ -293,11 +293,9 @@
#include <string.h>
#include <strings.h>
#include <unistd.h>
-#include <alloca.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ipc.h>
-#include <sys/file.h>
#include <errno.h>
#include <syslog.h>
#include <pwd.h>
@@ -637,7 +635,7 @@ void set_perm(int file)
// Set absolute permissions or rw-rw----
fchmod(file, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
- grp = getgrnam("pkcs11"); // Obtain the group id
+ grp = getgrnam(PKCS11GROUP); // Obtain the group id
if (grp) {
// set ownership to root, and pkcs11 group
if (fchown(file, getuid(), grp->gr_gid) != 0) {
|