zuluCrypt  5.7.1
About: zuluCrypt is a simple but feature rich solution for hard drives encryption. It can manage PLAIN dm-crypt, LUKS, TrueCrypt and VeraCrypt encrypted volumes.
  Fossies Dox: zuluCrypt-5.7.1.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

security.h
Go to the documentation of this file.
1 
2 /*
3  *
4  * Copyright (c) 2012-2015
5  * name : Francis Banyikwa
6  * email: mhogomchungu@gmail.com
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 
22 #ifndef ZULUCRYPTSECURITY
23 #define ZULUCRYPTSECURITY
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 #include "includes.h"
30 /*
31  * All these functions are defined in security.c
32  */
33 
34 /*
35  * set the function to be called when an attempt to evelate or downgrade privileges fail
36  * zuluCryptSecurityPrivilegeElevationError global variable is defined in security.c
37  */
38 extern void ( *zuluCryptSecurityPrivilegeElevationError )( const char * ) ;
39 
40 void zuluCryptSecuritySetPrivilegeElevationErrorFunction( void ( * ) ( const char * ) ) ;
41 
43 
44 int zuluCryptSecurityUserOwnTheFile( const char * device,uid_t uid ) ;
45 
47 
49 
51 
53 
55 
57 
58 const char * zuluCryptRunTimePath() ;
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
64 #endif
zuluCryptSecurityPrivilegeElevationError
void(* zuluCryptSecurityPrivilegeElevationError)(const char *)
Definition: security.c:102
zuluCryptSecuritySetPrivilegeElevationErrorFunction
void zuluCryptSecuritySetPrivilegeElevationErrorFunction(void(*)(const char *))
Definition: security.c:104
zuluCryptSecurityPrintPermissions
void zuluCryptSecurityPrintPermissions(void)
Definition: security.c:260
zuluCryptSecurityUserOwnTheFile
int zuluCryptSecurityUserOwnTheFile(const char *device, uid_t uid)
Definition: security.c:179
zuluCryptSecurityLockMemory_1
void zuluCryptSecurityLockMemory_1(string_t st)
Definition: security.c:185
zuluCryptSecuritySanitizeTheEnvironment
void zuluCryptSecuritySanitizeTheEnvironment(uid_t uid, stringList_t *)
Definition: security.c:124
StringType
Definition: String.c:49
zuluCryptSecurityUnlockMemory_1
void zuluCryptSecurityUnlockMemory_1(string_t st)
Definition: security.c:193
zuluCryptSecurityLockMemory
void zuluCryptSecurityLockMemory(stringList_t stl)
Definition: security.c:210
StringListType
Definition: StringList.c:33
zuluCryptSetUserUIDForPrivilegeManagement
void zuluCryptSetUserUIDForPrivilegeManagement(uid_t)
Definition: security.c:97
zuluCryptSecurityUnlockMemory
void zuluCryptSecurityUnlockMemory(stringList_t stl)
Definition: security.c:229
zuluCryptRunTimePath
const char * zuluCryptRunTimePath()
Definition: security.c:49
includes.h