Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

Firefox starts in offline mode while sandboxed

  • 2 trả lời
  • 5 gặp vấn đề này
  • 10 lượt xem
  • Trả lời mới nhất được viết bởi AnonymousUser

more options

I'm trying to run Firefox sandboxed for security reasons. Everything works except it always starts in Offline Mode. Do I need to allow access to something in particular to fix this? Below are the contents of my sandbox profile:

firefox - sandbox profile
http://codereview.chromium.org/379019/diff/1/2

(version 1) (deny default)

(allow file-write* file-read-data file-read-metadata

 (regex "^/Users/james/Downloads")
 (regex "^/Users/james/Library/Application Support/Mozilla")
 (regex "^/Users/james/Library/Application Support/Firefox")
 (regex "^/Users/james/Library/Preferences")
 (regex "^/Users/james/Library/PreferencePanes")
 (regex "^/Users/james/Library/Caches/Firefox")
 (regex "^/Users/james/Library/Caches/TemporaryItems")
 (regex "^/Applications/Firefox.app")
 (regex "^(/private)?/tmp/"))

(allow file-read-data file-read-metadata

 (regex "^/dev/autofs.*")
 (regex "^/Library/Preferences")
 (regex "^/Library/Internet Plug-Ins")
 (regex "^/Library/PreferencePanes")
 (regex "^/usr/share/icu")
 (regex "^/usr/share/locale")
 (regex "^/System/Library")
 (regex "^/Applications/Firefox.app")
 (regex "^/usr/lib")
 (regex "^/var")
 (regex #"Frameworks/SDL.framework")
Our Module Directory Services cache
 (regex "^/private/var/tmp/mds/")
 (regex "^/private/var/tmp/mds/[0-9]+(/|$)")
 (regex "^/Users/james"))

(allow mach* sysctl-read)

(import "/usr/share/sandbox/bsd.sb") (deny file-write-data

  (regex #"^(/private)?/etc/localtime$"
    #"^/usr/share/nls/"

#"^/usr/share/zoneinfo/"))

(allow process-exec

 (regex "^/Applications/Firefox.app"))
 

(allow network*)

(allow file-read-data (regex #"^/System/Library/Fonts"))  ; 10.5.6 (allow file-read-data (regex #"^/Library/Fonts"))  ; 10.6 (allow mach-lookup (global-name "com.apple.FontObjectsServer"))  ; 10.5.6 (allow mach-lookup (global-name "com.apple.FontServer"))  ; 10.6


This happened

Every time Firefox opened

== Running

I'm trying to run Firefox sandboxed for security reasons. Everything works except it always starts in Offline Mode. Do I need to allow access to something in particular to fix this? Below are the contents of my sandbox profile: ;; ;; firefox - sandbox profile ;; ;; http://codereview.chromium.org/379019/diff/1/2 (version 1) (deny default) (allow file-write* file-read-data file-read-metadata (regex "^/Users/james/Downloads") (regex "^/Users/james/Library/Application Support/Mozilla") (regex "^/Users/james/Library/Application Support/Firefox") (regex "^/Users/james/Library/Preferences") (regex "^/Users/james/Library/PreferencePanes") (regex "^/Users/james/Library/Caches/Firefox") (regex "^/Users/james/Library/Caches/TemporaryItems") (regex "^/Applications/Firefox.app") (regex "^(/private)?/tmp/")) (allow file-read-data file-read-metadata (regex "^/dev/autofs.*") (regex "^/Library/Preferences") (regex "^/Library/Internet Plug-Ins") (regex "^/Library/PreferencePanes") (regex "^/usr/share/icu") (regex "^/usr/share/locale") (regex "^/System/Library") (regex "^/Applications/Firefox.app") (regex "^/usr/lib") (regex "^/var") (regex #"Frameworks/SDL.framework") ; Our Module Directory Services cache (regex "^/private/var/tmp/mds/") (regex "^/private/var/tmp/mds/[0-9]+(/|$)") (regex "^/Users/james")) (allow mach* sysctl-read) (import "/usr/share/sandbox/bsd.sb") (deny file-write-data (regex #"^(/private)?/etc/localtime$" #"^/usr/share/nls/" #"^/usr/share/zoneinfo/")) (allow process-exec (regex "^/Applications/Firefox.app")) (allow network*) (allow file-read-data (regex #"^/System/Library/Fonts")) ; 10.5.6 (allow file-read-data (regex #"^/Library/Fonts")) ; 10.6 (allow mach-lookup (global-name "com.apple.FontObjectsServer")) ; 10.5.6 (allow mach-lookup (global-name "com.apple.FontServer")) ; 10.6 == This happened == Every time Firefox opened == Running

Tất cả các câu trả lời (3)

more options

I have exactly the same problem...

more options

Same problem using Fedora-13

more options

This solved the problem for me.

Right-click on the about:config page to open the right-click context menu and use "New > Boolean" to create a new Boolean pref.

Name: network.manage-offline-status Value: false