]> git.pld-linux.org Git - packages/setools.git/blob - setools.spec
- updated to 1.1.1
[packages/setools.git] / setools.spec
1 Summary:        SELinux tools for managing policy
2 Summary(pl):    Narzêdzia do zarz±dzania polityk± SELinux
3 Name:           setools
4 Version:        1.1.1
5 Release:        0.1
6 License:        GPL
7 Group:          Base
8 #Source0:       http://www.nsa.gov/selinux/archives/%{name}-%{version}.tgz
9 Source0:        http://www.tresys.com/Downloads/selinux-tools/%{name}-%{version}.tgz
10 # Source0-md5:  b0147413a6d28dd9d281fc8e41e124ea
11 Patch0:         %{name}-userbuild.patch
12 BuildRequires:  perl-base
13 BuildRequires:  tk-devel
14 BuildRequires:  libglade2-devel
15 BuildRequires:  bison
16 Requires:       checkpolicy
17 Requires:       policycoreutils
18 Requires:       tk
19 Requires:       tk-BWidget
20 # R: policy, policy-sources
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 This package contains some tools and libraries for Security-enhanced
25 Linux (a project with enhanced security functionality designed to add
26 mandatory access controls to Linux). This package includes the
27 following utilities:
28 - apol: The GUI-based policy analysis tool.
29 - sepcut: A basic GUI-based policy configuration, browsing, editing,
30   and testing tool, intended to provide a complete, single user
31   interface for viewing the source files of a policy, configuring
32   policy program modules, editing policy files, and making and testing
33   the policy.
34 - seuser: A GUI and command line user manager tool for SELinux. This
35   is a tool that actually manages a portion of a running policy (i.e.,
36   user accounts).
37 - seuser scripts: A set of shell scripts: seuseradd, seusermod, and
38   seuserdel. These scripts combine the functions of the associated s*
39   commands with seuser to provide a single interface to manage users
40   in SE Linux.
41
42 And the following tool which can serve as building blocks for the
43 development of additional tools:
44 - awish: A version of the TCL/TK wish interpreter that includes the
45   setools libraries. It's used to test SELinux GUIs (apol and seuser
46   have the interpreter compiled within them). One could conceivably
47   write one's own GUI tools using TCL/TK as extended via awish.
48 %if 0
49 # unpackaged yet (what about headers?)
50 - libapol: The main policy.conf analysis library, which is the core
51   library for all our tools.
52 - libseuser: The primary logic used for seuser.
53 %endif
54
55 %description -l pl
56 Ten pakiet zawiera narzêdzia i biblioteki dla Linuksa w wersji
57 Security-enhanced (jest to projekt z rozszerzon± funkcjonalno¶ci±
58 zwi±zan± z bezpieczeñstwem opracowan± w celu dodania mandatowej
59 kontroli dostêpu do Linuksa). Ten pakiet zawiera nastêpuj±ce
60 narzêdzia:
61 - apol - narzêdzie do analizy polityki z graficznym interfejsem.
62 - sepcut - podstawowe graficzne narzêdzie do konfiguracji,
63   przegl±dania, edycji i testowania polityki, maj±ce zapewniæ
64   kompletny interfejs do przegl±dania plików ¼ród³owych polityki,
65   konfigurowania modu³ów programu polityki, edycji plików polityki
66   oraz tworzenia i testowania polityki.
67 - seuser - graficzne oraz dzia³aj±ce z linii poleceñ narzêdzie do
68   zarz±dzania u¿ytkownikami dla SELinuksa. Jest to narzêdzie
69   zarz±dzaj±ce czê¶ci± funkcjonuj±cej polityki (czyli kontami
70   u¿ytkowników).
71 - skrypty seuser - zbiór skryptów pow³oki: seuseradd, seusermod oraz
72   seuserdel. £±cz± one funkcjonalno¶æ poleceñ s* z seuser, aby
73   zapewniæ pojedynczy interfejs do zarz±dzania u¿ytkownikami w
74   SELinuksie.
75
76 Pakiet zawiera tak¿e narzêdzie mog±ce s³u¿yæ jako czê¶æ do budowania
77 innych narzêdzi - jest to awish, czyli wersja interpretera wish z
78 TCL/TK zawieraj±ca biblioteki setools. Jest u¿ywany do testowania
79 GUI dla SELinuksa (apol i seuser maj± interpreter wkompilowany).
80 Mo¿na pisaæ w³asne graficzne narzêdzia przy u¿yciu awisha.
81
82 %prep
83 %setup -q
84 %patch0 -p1
85
86 %build
87 %{__make} all \
88         CC="%{__cc}" \
89         CFLAGS="%{rpmcflags}" \
90         TCL_LIBS="-ltk -ltcl -lfl -lm -ldl"
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94 install -d $RPM_BUILD_ROOT%{_bindir}
95
96 %{__make} install \
97         DESTDIR=$RPM_BUILD_ROOT
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %if 0
103 # not ready... (policy, chcon from patched coreutils?)
104 %post
105 cd /etc/security/selinux/src/policy
106 make install
107 make reload
108 chcon system_u:object_r:policy_src_t /etc/security/selinux/src/policy/domains/program/seuser.te
109 chcon system_u:object_r:policy_src_t /etc/security/selinux/src/policy/file_contexts/program/seuser.fc
110 chcon system_u:object_r:seuser_exec_t /usr/bin/seuser
111 chcon system_u:object_r:seuser_conf_t /usr/lib/apol/seuser.conf
112
113 %postun
114 cd /etc/security/selinux/src/policy
115 make install
116 make reload
117 %endif
118
119 %files
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_bindir}/*
122 %{_libdir}/apol
123 /etc/security/selinux/src/policy/domains/program/seuser.te
124 /etc/security/selinux/src/policy/file_contexts/program/seuser.fc
This page took 0.1297 seconds and 4 git commands to generate.