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