[4.0.1.48] sailjail configuration (/etc/hosts problem), nsswitch.conf missing in Internet.permissions

REPRODUCIBILITY (% or how often): 100
BUILD ID = OS VERSION (Settings > About product): 4.0.1.48
HARDWARE (XA2, Xperia 10…): X, all
UI LANGUAGE: English
REGRESSION: (compared to previous public release: Yes, No, ?): yes

DESCRIPTION:

sailjailed browser does not obey modified /etc/hosts file
all blocked entries are available in browser whereas ping is redirected to localhost as should
adding nsswitch.conf to private-etc configuration in /etc/sailjail/permissions/Internet.permission solves this

PRECONDITIONS:

updated to 4.0.1

STEPS TO REPRODUCE:

  1. modify /etc/hosts
  2. start sailjailed browser
  3. surf to blocked entry

EXPECTED RESULT:

browser is redirected to localhost and site not available

ACTUAL RESULT:

browser allows blocked sites

ADDITIONAL INFORMATION:

(Please ALWAYS attach relevant data such as logs, screenshots, etc…)

This is essential especially for harbour-defender and all self-modifiers.

7 Likes

Answering my own bug report as I stumbled upon it being mentioned in the lengthy change log (or was it release notes) and to let others know that this is fixed within a SW release 4.1.0).

1 Like