]>
Commit | Line | Data |
---|---|---|
fa8b3432 ER |
1 | Summary: A SUID sandbox program |
2 | Name: firejail | |
d5a49b45 | 3 | Version: 0.9.66 |
7ce00505 | 4 | Release: 1 |
fa8b3432 ER |
5 | License: GPL v2+ |
6 | Group: Applications | |
7 | Source0: https://github.com/netblue30/firejail/archive/%{version}/%{name}-%{version}.tar.gz | |
d5a49b45 | 8 | # Source0-md5: cd6d083ca88b452fb6cde73b64a8fb70 |
7ce00505 | 9 | URL: https://firejail.wordpress.com/ |
fa8b3432 ER |
10 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
11 | ||
12 | %description | |
13 | Firejail is a SUID security sandbox program that reduces the risk of | |
14 | security breaches by restricting the running environment of untrusted | |
15 | applications using Linux namespaces and seccomp-bpf. It allows a | |
16 | process and all its descendants to have their own private view of the | |
17 | globally shared kernel resources, such as the network stack, process | |
18 | table, and mount table. | |
19 | ||
f42926f0 ER |
20 | %package -n bash-completion-%{name} |
21 | Summary: bash-completion for firejail | |
22 | Summary(pl.UTF-8): bashowe uzupełnianie nazw dla firejail | |
23 | Group: Applications/Shells | |
24 | Requires: %{name} | |
25 | Requires: bash-completion >= 2.0 | |
f42926f0 | 26 | BuildArch: noarch |
f42926f0 ER |
27 | |
28 | %description -n bash-completion-%{name} | |
29 | bash-completion for firejail. | |
30 | ||
31 | %description -n bash-completion-%{name} -l pl.UTF-8 | |
32 | bashowe uzupełnianie nazw dla firejail. | |
33 | ||
fa8b3432 ER |
34 | %prep |
35 | %setup -qn %{name}-%{version} | |
36 | ||
00bc9f14 JP |
37 | %{__sed} -i -e '1s|#!/usr/bin/env python3$|#!%{__python3}|' contrib/*.py |
38 | ||
fa8b3432 | 39 | # Fix libdir. |
d5a49b45 | 40 | ##sed -i -e 's#/usr/lib#%{_libdir}#g' etc/disable-devel.inc |
fa8b3432 ER |
41 | |
42 | %build | |
43 | %configure | |
57181a97 ER |
44 | CFLAGS="%{rpmcflags}" \ |
45 | %{__make} \ | |
46 | CC="%{__cc}" | |
fa8b3432 ER |
47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | %{__make} install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
7ce00505 | 53 | chmod +x $RPM_BUILD_ROOT%{_libdir}/%{name}/*.so |
fa8b3432 ER |
54 | |
55 | # Install documentation ourselves. | |
56 | rm -r $RPM_BUILD_ROOT%{_docdir}/%{name} | |
57 | ||
7ce00505 ER |
58 | %clean |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
fa8b3432 ER |
61 | %files |
62 | %defattr(644,root,root,755) | |
63 | %doc README README.md RELNOTES | |
7ce00505 ER |
64 | %dir %{_sysconfdir}/%{name} |
65 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.inc | |
66 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.net | |
67 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.profile | |
66644c43 | 68 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.config |
7ce00505 | 69 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/login.users |
fa8b3432 | 70 | %attr(4755,root,root) %{_bindir}/firejail |
66644c43 | 71 | %attr(755,root,root) %{_bindir}/firecfg |
fa8b3432 | 72 | %attr(755,root,root) %{_bindir}/firemon |
66644c43 | 73 | %{_mandir}/man1/firecfg.1* |
fa8b3432 ER |
74 | %{_mandir}/man1/firejail.1* |
75 | %{_mandir}/man1/firemon.1* | |
76 | %{_mandir}/man5/firejail-login.5* | |
77 | %{_mandir}/man5/firejail-profile.5* | |
00bc9f14 | 78 | %{_mandir}/man5/firejail-users.5* |
7ce00505 | 79 | %dir %{_libdir}/%{name} |
00bc9f14 JP |
80 | %attr(755,root,root) %{_libdir}/%{name}/fbuilder |
81 | %attr(755,root,root) %{_libdir}/%{name}/fcopy | |
82 | %attr(755,root,root) %{_libdir}/%{name}/fix_private-bin.py | |
83 | %attr(755,root,root) %{_libdir}/%{name}/fjclip.py | |
84 | %attr(755,root,root) %{_libdir}/%{name}/fjdisplay.py | |
85 | %attr(755,root,root) %{_libdir}/%{name}/fjresize.py | |
86 | %attr(755,root,root) %{_libdir}/%{name}/fldd | |
87 | %attr(755,root,root) %{_libdir}/%{name}/fnet | |
88 | %attr(755,root,root) %{_libdir}/%{name}/fnetfilter | |
89 | %attr(755,root,root) %{_libdir}/%{name}/fsec-optimize | |
90 | %attr(755,root,root) %{_libdir}/%{name}/fsec-print | |
91 | %attr(755,root,root) %{_libdir}/%{name}/fseccomp | |
7ce00505 ER |
92 | %attr(755,root,root) %{_libdir}/%{name}/fshaper.sh |
93 | %attr(755,root,root) %{_libdir}/%{name}/ftee | |
00bc9f14 | 94 | %attr(755,root,root) %{_libdir}/%{name}/libpostexecseccomp.so |
7ce00505 ER |
95 | %attr(755,root,root) %{_libdir}/%{name}/libtrace.so |
96 | %attr(755,root,root) %{_libdir}/%{name}/libtracelog.so | |
00bc9f14 JP |
97 | %attr(755,root,root) %{_libdir}/%{name}/sort.py |
98 | %attr(755,root,root) %{_libdir}/%{name}/syscalls.sh | |
99 | %{_libdir}/%{name}/firecfg.config | |
100 | %{_libdir}/%{name}/seccomp | |
101 | %{_libdir}/%{name}/seccomp.32 | |
102 | %{_libdir}/%{name}/seccomp.block_secondary | |
103 | %{_libdir}/%{name}/seccomp.debug | |
104 | %{_libdir}/%{name}/seccomp.mdwx | |
fa8b3432 | 105 | |
d5a49b45 WF |
106 | %attr(755,root,root) %{_bindir}/jailcheck |
107 | %attr(755,root,root) %{_libdir}/firejail/firejail-welcome.sh | |
108 | %attr(755,root,root) %{_libdir}/firejail/fj-mkdeb.py | |
109 | %attr(755,root,root) %{_libdir}/firejail/gdb-firejail.sh | |
110 | %attr(755,root,root) %{_libdir}/firejail/jail_prober.py | |
111 | %{_libdir}/firejail/seccomp.mdwx.32 | |
112 | %attr(755,root,root) %{_libdir}/firejail/update_deb.sh | |
113 | %{_mandir}/man1/jailcheck.1* | |
114 | %{_datadir}/vim/vimfiles/ftdetect/firejail.vim | |
115 | %{_datadir}/vim/vimfiles/syntax/firejail.vim | |
116 | %{zsh_compdir}/_firejail | |
117 | ||
00bc9f14 | 118 | %files -n bash-completion-%{name} |
f42926f0 | 119 | %defattr(644,root,root,755) |
7ce00505 ER |
120 | %{bash_compdir}/firejail |
121 | %{bash_compdir}/firemon | |
66644c43 | 122 | %{bash_compdir}/firecfg |