[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/torbrowser-launcher][main] 2 commits: Allow tor to read geoip, geoip6 and torrc-defaults



Title: GitLab

intrigeri pushed to branch main at The Tor Project / Applications / torbrowser-launcher

Commits:

  • 2cf2c2e1
    by Mario at 2026-11-12T22:30:47+01:00
    Allow tor to read geoip, geoip6 and torrc-defaults
    
    Tor Browser >= 10.5 ships geoip, geoip6 and torrc-defaults in
    Browser/TorBrowser/Tor/ instead of Browser/TorBrowser/Data/Tor/,
    and the torrc generated by Tor Browser points GeoIPFile/GeoIPv6File
    at the new location.
    
    The AppArmor profile only allowed reading *.so files from
    TorBrowser/Tor/, so the confined tor got EACCES when opening the
    geoip databases. Tor keeps running without them, which silently
    breaks GETINFO ip-to-country (returns '??'), so the browser circuit
    display shows relay IP addresses but no country or flag.
    
    Kernel audit (Debian trixie, torbrowser-launcher 0.3.7-3,
    Tor Browser 16.0.1, tor 0.4.9.16):
    
      apparmor="DENIED" operation="open" profile=""
        name=".../Browser/TorBrowser/Tor/geoip"  denied_mask="r"
      apparmor="DENIED" operation="open" profile=""
        name=".../Browser/TorBrowser/Tor/geoip6" denied_mask="r"
      apparmor="DENIED" operation="open" profile=""
        name=".../Browser/TorBrowser/Tor/torrc-defaults" denied_mask="r"
    
    With the added rules the bundled tor logs 'Parsing GEOIP IPv4/IPv6
    file ...' and GETINFO ip-to-country resolves countries again
    (verified with a test instance of the bundled tor under the patched
    profile).
    
  • 2dfa6cbf
    by intrigeri at 2026-11-17T13:51:05+00:00
    Merge branch 'fix/apparmor-geoip' into 'main'
    
    Allow tor to read geoip, geoip6 and torrc-defaults
    
    See merge request tpo/applications/torbrowser-launcher!53

1 changed file:

Changes:

  • apparmor/torbrowser.Tor.tor
    ... ... @@ -15,6 +15,9 @@ profile torbrowser_tor @{torbrowser_tor_executable} {
    15 15
       /etc/passwd r,
    
    16 16
       /etc/resolv.conf r,
    
    17 17
       owner @{torbrowser_home_dir}/TorBrowser/Tor/tor mr,
    
    18
    +  owner @{torbrowser_home_dir}/TorBrowser/Tor/torrc-defaults r,
    
    19
    +  owner @{torbrowser_home_dir}/TorBrowser/Tor/geoip r,
    
    20
    +  owner @{torbrowser_home_dir}/TorBrowser/Tor/geoip6 r,
    
    18 21
       owner @{torbrowser_home_dir}/TorBrowser/Data/Tor/ rw,
    
    19 22
       owner @{torbrowser_home_dir}/TorBrowser/Data/Tor/** rw,
    
    20 23
       owner @{torbrowser_home_dir}/TorBrowser/Data/Tor/lock rwk,
    

  • _______________________________________________
    tor-commits mailing list -- tor-commits@xxxxxxxxxxxxxxxxxxxx
    To unsubscribe send an email to tor-commits-leave@xxxxxxxxxxxxxxxxxxxx