Author: Linux Manual

Linux man pages imported from manual pages.
  • |

    selinux_getpolicytype (3) Linux Manual Page

    selinux_getpolicytype – get the type of SELinux policy running on the system Synopsis #include <selinux/selinux.h> int selinux_getpolicytype(char **policytype); Description selinux_getpolicytype() Reads the contents of the /etc/selinux/config file to determine the SELinux policy used on the system, and sets policytype accordingly. Free policytype with free(3). Return Value On success, zero is returned. On failure, -1 is…

  • |

    selinux_getenforcemode (3) Linux Manual Page

    selinux_getenforcemode – get the enforcing state of SELinux Synopsis #include <selinux/selinux.h> int selinux_getenforcemode(int *enforce); Description selinux_getenforcemode() Reads the contents of the /etc/selinux/config file to determine how the system was setup to run SELinux. Sets the value of enforce to 1 if SELinux should be run in enforcing mode. Sets the value of enforce to 0…

  • |

    selinux_file_context_verify (3) Linux Manual Page

    selinux_file_context_verify – Compare the SELinux security context on disk to the default security context required by the policy file contexts file Synopsis #include <selinux/selinux.h> int selinux_file_context_verify(const char *path, mode_t mode); Description selinux_file_context_verify() compares the context of the specified path that is held on disk (in the extended attribute), to the system default entry held in…

  • |

    selinux_file_context_path (3) Linux Manual Page

    selinux_path, selinux_policy_root, selinux_binary_policy_path, selinux_current_policy_path, selinux_failsafe_context_path, selinux_removable_context_path, selinux_default_context_path, selinux_user_contexts_path, selinux_file_context_path, selinux_media_context_path, selinux_contexts_path – These functions return the paths to the active SELinux policy configuration directories and files Synopsis #include <selinux/selinux.h> const char *selinux_path(void); const char *selinux_policy_root(void); const char *selinux_binary_policy_path(void); const char *selinux_current_policy_path(void); const char *selinux_failsafe_context_path(void); const char *selinux_removable_context_path(void); const char *selinux_default_context_path(void); const char *selinux_user_contexts_path(void); const char…

  • |

    selinux_file_context_local_path (3) Linux Manual Page

    selinux_path, selinux_policy_root, selinux_binary_policy_path, selinux_current_policy_path, selinux_failsafe_context_path, selinux_removable_context_path, selinux_default_context_path, selinux_user_contexts_path, selinux_file_context_path, selinux_media_context_path, selinux_contexts_path – These functions return the paths to the active SELinux policy configuration directories and files Synopsis #include <selinux/selinux.h> const char *selinux_path(void); const char *selinux_policy_root(void); const char *selinux_binary_policy_path(void); const char *selinux_current_policy_path(void); const char *selinux_failsafe_context_path(void); const char *selinux_removable_context_path(void); const char *selinux_default_context_path(void); const char *selinux_user_contexts_path(void); const char…

  • |

    selinux_file_context_homedir_path (3) Linux Manual Page

    selinux_path, selinux_policy_root, selinux_binary_policy_path, selinux_current_policy_path, selinux_failsafe_context_path, selinux_removable_context_path, selinux_default_context_path, selinux_user_contexts_path, selinux_file_context_path, selinux_media_context_path, selinux_contexts_path – These functions return the paths to the active SELinux policy configuration directories and files Synopsis #include <selinux/selinux.h> const char *selinux_path(void); const char *selinux_policy_root(void); const char *selinux_binary_policy_path(void); const char *selinux_current_policy_path(void); const char *selinux_failsafe_context_path(void); const char *selinux_removable_context_path(void); const char *selinux_default_context_path(void); const char *selinux_user_contexts_path(void); const char…

  • |

    selinux_file_context_cmp (3) Linux Manual Page

    selinux_file_context_cmp – Compare two SELinux security contexts excluding the ‘user’ component Synopsis #include <selinux/selinux.h> int selinux_file_context_cmp(const char *a, const char *b); Description selinux_file_context_cmp() compares two context strings excluding the user component with strcmp(3) as shown in the EXAMPLE section. This is useful as for most object contexts, the user component is not relevant. Return Value…

  • |

    selinux_failsafe_context_path (3) Linux Manual Page

    selinux_path, selinux_policy_root, selinux_binary_policy_path, selinux_current_policy_path, selinux_failsafe_context_path, selinux_removable_context_path, selinux_default_context_path, selinux_user_contexts_path, selinux_file_context_path, selinux_media_context_path, selinux_contexts_path – These functions return the paths to the active SELinux policy configuration directories and files Synopsis #include <selinux/selinux.h> const char *selinux_path(void); const char *selinux_policy_root(void); const char *selinux_binary_policy_path(void); const char *selinux_current_policy_path(void); const char *selinux_failsafe_context_path(void); const char *selinux_removable_context_path(void); const char *selinux_default_context_path(void); const char *selinux_user_contexts_path(void); const char…

  • |

    selinux_failsafe_context_path (3) Linux Manual Page

    selinux_path, selinux_policy_root, selinux_binary_policy_path, selinux_current_policy_path, selinux_failsafe_context_path, selinux_removable_context_path, selinux_default_context_path, selinux_user_contexts_path, selinux_file_context_path, selinux_media_context_path, selinux_contexts_path – These functions return the paths to the active SELinux policy configuration directories and files Synopsis #include <selinux/selinux.h> const char *selinux_path(void); const char *selinux_policy_root(void); const char *selinux_binary_policy_path(void); const char *selinux_current_policy_path(void); const char *selinux_failsafe_context_path(void); const char *selinux_removable_context_path(void); const char *selinux_default_context_path(void); const char *selinux_user_contexts_path(void); const char…

  • |

    selinux_failsafe_context_path (3) Linux Manual Page

    selinux_path, selinux_policy_root, selinux_binary_policy_path, selinux_current_policy_path, selinux_failsafe_context_path, selinux_removable_context_path, selinux_default_context_path, selinux_user_contexts_path, selinux_file_context_path, selinux_media_context_path, selinux_contexts_path – These functions return the paths to the active SELinux policy configuration directories and files Synopsis #include <selinux/selinux.h> const char *selinux_path(void); const char *selinux_policy_root(void); const char *selinux_binary_policy_path(void); const char *selinux_current_policy_path(void); const char *selinux_failsafe_context_path(void); const char *selinux_removable_context_path(void); const char *selinux_default_context_path(void); const char *selinux_user_contexts_path(void); const char…

  • |

    selinux_default_type_path (3) Linux Manual Page

    selinux_path, selinux_policy_root, selinux_binary_policy_path, selinux_current_policy_path, selinux_failsafe_context_path, selinux_removable_context_path, selinux_default_context_path, selinux_user_contexts_path, selinux_file_context_path, selinux_media_context_path, selinux_contexts_path – These functions return the paths to the active SELinux policy configuration directories and files Synopsis #include <selinux/selinux.h> const char *selinux_path(void); const char *selinux_policy_root(void); const char *selinux_binary_policy_path(void); const char *selinux_current_policy_path(void); const char *selinux_failsafe_context_path(void); const char *selinux_removable_context_path(void); const char *selinux_default_context_path(void); const char *selinux_user_contexts_path(void); const char…

  • |

    selinux_default_type_path (3) Linux Manual Page

    selinux_path, selinux_policy_root, selinux_binary_policy_path, selinux_current_policy_path, selinux_failsafe_context_path, selinux_removable_context_path, selinux_default_context_path, selinux_user_contexts_path, selinux_file_context_path, selinux_media_context_path, selinux_contexts_path – These functions return the paths to the active SELinux policy configuration directories and files Synopsis #include <selinux/selinux.h> const char *selinux_path(void); const char *selinux_policy_root(void); const char *selinux_binary_policy_path(void); const char *selinux_current_policy_path(void); const char *selinux_failsafe_context_path(void); const char *selinux_removable_context_path(void); const char *selinux_default_context_path(void); const char *selinux_user_contexts_path(void); const char…

  • |

    selinux_default_type_path (3) Linux Manual Page

    selinux_path, selinux_policy_root, selinux_binary_policy_path, selinux_current_policy_path, selinux_failsafe_context_path, selinux_removable_context_path, selinux_default_context_path, selinux_user_contexts_path, selinux_file_context_path, selinux_media_context_path, selinux_contexts_path – These functions return the paths to the active SELinux policy configuration directories and files Synopsis #include <selinux/selinux.h> const char *selinux_path(void); const char *selinux_policy_root(void); const char *selinux_binary_policy_path(void); const char *selinux_current_policy_path(void); const char *selinux_failsafe_context_path(void); const char *selinux_removable_context_path(void); const char *selinux_default_context_path(void); const char *selinux_user_contexts_path(void); const char…

  • |

    selinux_default_context_path (3) Linux Manual Page

    selinux_path, selinux_policy_root, selinux_binary_policy_path, selinux_current_policy_path, selinux_failsafe_context_path, selinux_removable_context_path, selinux_default_context_path, selinux_user_contexts_path, selinux_file_context_path, selinux_media_context_path, selinux_contexts_path – These functions return the paths to the active SELinux policy configuration directories and files Synopsis #include <selinux/selinux.h> const char *selinux_path(void); const char *selinux_policy_root(void); const char *selinux_binary_policy_path(void); const char *selinux_current_policy_path(void); const char *selinux_failsafe_context_path(void); const char *selinux_removable_context_path(void); const char *selinux_default_context_path(void); const char *selinux_user_contexts_path(void); const char…

  • |

    selinux_current_policy_path (3) Linux Manual Page

    selinux_path, selinux_policy_root, selinux_binary_policy_path, selinux_current_policy_path, selinux_failsafe_context_path, selinux_removable_context_path, selinux_default_context_path, selinux_user_contexts_path, selinux_file_context_path, selinux_media_context_path, selinux_contexts_path – These functions return the paths to the active SELinux policy configuration directories and files Synopsis #include <selinux/selinux.h> const char *selinux_path(void); const char *selinux_policy_root(void); const char *selinux_binary_policy_path(void); const char *selinux_current_policy_path(void); const char *selinux_failsafe_context_path(void); const char *selinux_removable_context_path(void); const char *selinux_default_context_path(void); const char *selinux_user_contexts_path(void); const char…

  • |

    selinux_current_policy_path (3) Linux Manual Page

    selinux_path, selinux_policy_root, selinux_binary_policy_path, selinux_current_policy_path, selinux_failsafe_context_path, selinux_removable_context_path, selinux_default_context_path, selinux_user_contexts_path, selinux_file_context_path, selinux_media_context_path, selinux_contexts_path – These functions return the paths to the active SELinux policy configuration directories and files Synopsis #include <selinux/selinux.h> const char *selinux_path(void); const char *selinux_policy_root(void); const char *selinux_binary_policy_path(void); const char *selinux_current_policy_path(void); const char *selinux_failsafe_context_path(void); const char *selinux_removable_context_path(void); const char *selinux_default_context_path(void); const char *selinux_user_contexts_path(void); const char…

  • |

    selinux_current_policy_path (3) Linux Manual Page

    selinux_path, selinux_policy_root, selinux_binary_policy_path, selinux_current_policy_path, selinux_failsafe_context_path, selinux_removable_context_path, selinux_default_context_path, selinux_user_contexts_path, selinux_file_context_path, selinux_media_context_path, selinux_contexts_path – These functions return the paths to the active SELinux policy configuration directories and files Synopsis #include <selinux/selinux.h> const char *selinux_path(void); const char *selinux_policy_root(void); const char *selinux_binary_policy_path(void); const char *selinux_current_policy_path(void); const char *selinux_failsafe_context_path(void); const char *selinux_removable_context_path(void); const char *selinux_default_context_path(void); const char *selinux_user_contexts_path(void); const char…

  • |

    selinux_contexts_path (3) Linux Manual Page

    selinux_path, selinux_policy_root, selinux_binary_policy_path, selinux_current_policy_path, selinux_failsafe_context_path, selinux_removable_context_path, selinux_default_context_path, selinux_user_contexts_path, selinux_file_context_path, selinux_media_context_path, selinux_contexts_path – These functions return the paths to the active SELinux policy configuration directories and files Synopsis #include <selinux/selinux.h> const char *selinux_path(void); const char *selinux_policy_root(void); const char *selinux_binary_policy_path(void); const char *selinux_current_policy_path(void); const char *selinux_failsafe_context_path(void); const char *selinux_removable_context_path(void); const char *selinux_default_context_path(void); const char *selinux_user_contexts_path(void); const char…

  • |

    selinux_colors_path (3) Linux Manual Page

    selinux_colors_path – Return a path to the active SELinux policy color configuration file Synopsis #include <selinux/selinux.h> const char *selinux_colors_path(void); Description selinux_colors_path() returns the path to the active policy color configuration file. The path is built from the path returned by selinux_policy_root(3) with /secolor.conf appended. This optional configuration file whose format is shown in secolor.conf(5), controls…

  • |

    selinux_colors_path (3) Linux Manual Page

    selinux_colors_path – Return a path to the active SELinux policy color configuration file Synopsis #include <selinux/selinux.h> const char *selinux_colors_path(void); Description selinux_colors_path() returns the path to the active policy color configuration file. The path is built from the path returned by selinux_policy_root(3) with /secolor.conf appended. This optional configuration file whose format is shown in secolor.conf(5), controls…