"Fossies" - the Fresh Open Source Software Archive

Member "zuluCrypt-5.7.1/zuluCrypt-cli/bin/security.h" (23 Jan 2020, 1834 Bytes) of package /linux/misc/zuluCrypt-5.7.1.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "security.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 5.7.0_vs_5.7.1.

    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 
   42 void zuluCryptSecuritySanitizeTheEnvironment( uid_t uid,stringList_t * ) ;
   43 
   44 int zuluCryptSecurityUserOwnTheFile( const char * device,uid_t uid ) ;
   45 
   46 void zuluCryptSecurityPrintPermissions( void ) ;
   47 
   48 void zuluCryptSetUserUIDForPrivilegeManagement( uid_t ) ;
   49 
   50 void zuluCryptSecurityLockMemory( stringList_t stl ) ;
   51 
   52 void zuluCryptSecurityUnlockMemory( stringList_t stl ) ;
   53 
   54 void zuluCryptSecurityLockMemory_1( string_t st ) ;
   55 
   56 void zuluCryptSecurityUnlockMemory_1( string_t st ) ;
   57 
   58 const char * zuluCryptRunTimePath() ;
   59 
   60 #ifdef __cplusplus
   61 }
   62 #endif
   63 
   64 #endif