Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tor
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jarl
tor
Commits
3c98a024
Commit
3c98a024
authored
13 years ago
by
intrigeri
Committed by
Peter Palfrader
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add AppArmor profile.
Signed-off-by:
Peter Palfrader
<
peter@palfrader.org
>
parent
39ca810b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
debian/apparmor-profile
+35
-0
35 additions, 0 deletions
debian/apparmor-profile
debian/control
+2
-2
2 additions, 2 deletions
debian/control
debian/rules
+4
-0
4 additions, 0 deletions
debian/rules
debian/tor.dirs
+1
-0
1 addition, 0 deletions
debian/tor.dirs
with
42 additions
and
2 deletions
debian/apparmor-profile
0 → 100644
+
35
−
0
View file @
3c98a024
# vim:syntax=apparmor
#include <tunables/global>
/usr/sbin/tor {
#include <abstractions/base>
#include <abstractions/nameservice>
network tcp,
network udp,
capability chown,
capability dac_override,
capability fowner,
capability fsetid,
capability setgid,
capability setuid,
/proc/sys/kernel/random/uuid r,
/sys/devices/system/cpu/ r,
/sys/devices/system/cpu/** r,
/etc/tor/* r,
/usr/share/tor/** r,
owner /var/lib/tor/** rwk,
owner /var/log/tor/log* w,
/{,var/}run/tor/control w,
/{,var/}run/tor/tor.pid w,
/{,var/}run/tor/control.authcookie w,
/{,var/}run/tor/control.authcookie.tmp rw,
# Site-specific additions and overrides. See local/README for details.
#include <local/usr.sbin.tor>
}
This diff is collapsed.
Click to expand it.
debian/control
+
2
−
2
View file @
3c98a024
...
...
@@ -2,7 +2,7 @@ Source: tor
Section: net
Priority: optional
Maintainer: Peter Palfrader <weasel@debian.org>
Build-Depends: debhelper (>= 5), libssl-dev, dpatch, zlib1g-dev, libevent-dev (>= 1.1), binutils (>= 2.14.90.0.7), hardening-includes, asciidoc (>= 8.2), docbook-xml, docbook-xsl, xmlto
Build-Depends: debhelper (>= 5), libssl-dev, dpatch, zlib1g-dev, libevent-dev (>= 1.1), binutils (>= 2.14.90.0.7), hardening-includes, asciidoc (>= 8.2), docbook-xml, docbook-xsl, xmlto
, dh-apparmor
Standards-Version: 3.8.1
Homepage: https://www.torproject.org/
Vcs-Git: git://git.torproject.org/debian/tor.git
...
...
@@ -13,7 +13,7 @@ Architecture: any
Depends: ${shlibs:Depends}, adduser, ${misc:Depends}
Conflicts: libssl0.9.8 (<< 0.9.8g-9)
Recommends: logrotate, tor-geoipdb, torsocks
Suggests: mixmaster, xul-ext-torbutton, socat, tor-arm, polipo (>= 1) | privoxy
Suggests: mixmaster, xul-ext-torbutton, socat, tor-arm, polipo (>= 1) | privoxy
, apparmor
Description: anonymizing overlay network for TCP
Tor is a connection-based low-latency anonymous communication system which
addresses many flaws in the original onion routing design.
...
...
This diff is collapsed.
Click to expand it.
debian/rules
+
4
−
0
View file @
3c98a024
...
...
@@ -151,6 +151,10 @@ install: build
install
-m
644
contrib/tor-tsocks.conf
$(CURDIR)/debian/tor/etc/tor
install
-m
644
debian/tor-service-defaults-torrc
$(CURDIR)/debian/tor/usr/share/tor
install
-m
644
debian/apparmor-profile
$(CURDIR)/debian/tor/etc/apparmor.d/usr.sbin.tor
if
type
dh_apparmor
>/dev/null
2>&1;
\
then
dh_apparmor
--profile-name
=
usr.sbin.tor
-ptor
;
fi
dh_link
usr/share/man/man8/tor.8
usr/share/man/man5/torrc.5
rm
-f
$(CURDIR)/debian/tor/usr/bin/tor-control.py
...
...
This diff is collapsed.
Click to expand it.
debian/tor.dirs
+
1
−
0
View file @
3c98a024
etc/apparmor.d
etc/tor
var/lib/tor
var/log/tor
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment