1 Summary: A SUID sandbox program
7 Source0: https://github.com/netblue30/firejail/archive/%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5: 784efb67eb4c33d8c456e44876371792
9 URL: https://firejail.wordpress.com/
10 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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
25 Requires: bash-completion >= 2.0
28 %description -n bash-completion-%{name}
29 bash-completion for firejail.
31 %description -n bash-completion-%{name} -l pl.UTF-8
32 bashowe uzupełnianie nazw dla firejail.
35 %setup -qn %{name}-%{version}
37 %{__sed} -i -e '1s|#!/usr/bin/env python3$|#!%{__python3}|' contrib/*.py
40 sed -i -e 's#/usr/lib#%{_libdir}#g' etc/disable-devel.inc
44 CFLAGS="%{rpmcflags}" \
49 rm -rf $RPM_BUILD_ROOT
51 DESTDIR=$RPM_BUILD_ROOT
53 chmod +x $RPM_BUILD_ROOT%{_libdir}/%{name}/*.so
55 # Install documentation ourselves.
56 rm -r $RPM_BUILD_ROOT%{_docdir}/%{name}
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
63 %doc README README.md RELNOTES
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
68 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.config
69 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/login.users
70 %attr(4755,root,root) %{_bindir}/firejail
71 %attr(755,root,root) %{_bindir}/firecfg
72 %attr(755,root,root) %{_bindir}/firemon
73 %{_mandir}/man1/firecfg.1*
74 %{_mandir}/man1/firejail.1*
75 %{_mandir}/man1/firemon.1*
76 %{_mandir}/man5/firejail-login.5*
77 %{_mandir}/man5/firejail-profile.5*
78 %{_mandir}/man5/firejail-users.5*
79 %dir %{_libdir}/%{name}
80 %attr(755,root,root) %{_libdir}/%{name}/faudit
81 %attr(755,root,root) %{_libdir}/%{name}/fbuilder
82 %attr(755,root,root) %{_libdir}/%{name}/fcopy
83 %attr(755,root,root) %{_libdir}/%{name}/fix_private-bin.py
84 %attr(755,root,root) %{_libdir}/%{name}/fjclip.py
85 %attr(755,root,root) %{_libdir}/%{name}/fjdisplay.py
86 %attr(755,root,root) %{_libdir}/%{name}/fjresize.py
87 %attr(755,root,root) %{_libdir}/%{name}/fldd
88 %attr(755,root,root) %{_libdir}/%{name}/fnet
89 %attr(755,root,root) %{_libdir}/%{name}/fnetfilter
90 %attr(755,root,root) %{_libdir}/%{name}/fsec-optimize
91 %attr(755,root,root) %{_libdir}/%{name}/fsec-print
92 %attr(755,root,root) %{_libdir}/%{name}/fseccomp
93 %attr(755,root,root) %{_libdir}/%{name}/fshaper.sh
94 %attr(755,root,root) %{_libdir}/%{name}/ftee
95 %attr(755,root,root) %{_libdir}/%{name}/libpostexecseccomp.so
96 %attr(755,root,root) %{_libdir}/%{name}/libtrace.so
97 %attr(755,root,root) %{_libdir}/%{name}/libtracelog.so
98 %attr(755,root,root) %{_libdir}/%{name}/sort.py
99 %attr(755,root,root) %{_libdir}/%{name}/syscalls.sh
100 %{_libdir}/%{name}/firecfg.config
101 %{_libdir}/%{name}/seccomp
102 %{_libdir}/%{name}/seccomp.32
103 %{_libdir}/%{name}/seccomp.block_secondary
104 %{_libdir}/%{name}/seccomp.debug
105 %{_libdir}/%{name}/seccomp.mdwx
107 %files -n bash-completion-%{name}
108 %defattr(644,root,root,755)
109 %{bash_compdir}/firejail
110 %{bash_compdir}/firemon
111 %{bash_compdir}/firecfg