It is a really lean browser meant for advanced users, for those who are not familiar, and is the opposite of the harvester browsers that most ov even *nixers use.
I have posted on the issues I have on the Dillo mailing list, and the issue of concern to grsecurity (although in other issues there are aspects related to grsecurity deployment as well), is this one (where I also promise I would post here about it):
Github et alia login/cookies issue
http://lists.dillo.org/pipermail/dillo- ... 10582.html
(that's the start of that thread)
and where I promise I would ask for insight from advanced users here on Grsecurity Forums is:
[ same title ]
http://lists.dillo.org/pipermail/dillo- ... 10586.html
So this is my entries, real, complete (with even all the commented out lines that I replaced with what I in my best understanding would be their broader equivalents, for want of more correct term), regarding dillo, in my:
/etc/grsec/policy:
- Code: Select all
# Role: miro
subject /usr/bin/dillo o {
/ h
/Cmn r
/Cmn/dLo wc
/Cmn/m* wc
/Cmn/Kaff wc
/etc
/etc/fltk wc
/etc/gai.conf r
/etc/grsec h
/etc/gshadow h
/etc/gshadow- h
/etc/host.conf r
/etc/hosts r
/etc/ld.so.cache r
/etc/nsswitch.conf r
/etc/passwd h
/etc/resolv.conf r
/etc/shadow h
/etc/shadow- h
/etc/ssh h
/home h
/home/miro/.Xauthority r
/home/miro/.dillo
/home/miro/.dillo/cookiesrc r
/home/miro/.dillo/dillorc r
/home/miro/.dillo/domainrc r
/home/miro/.dillo/dpid_comm_keys r
/home/miro/.dillo/keysrc r
/home/miro/.fltk/fltk.org
/home/miro/.fltk/fltk.org/filechooser.prefs r
/home/miro/.fltk/fltk.org/fltk.prefs rw
/lib64 rx
/lib64/modules h
/proc
/proc/bus h
/proc/kallsyms h
/proc/kcore h
/proc/modules h
/proc/slabinfo h
/proc/sys h
/tmp rwcd
/usr h
/usr/bin h
/usr/bin/dillo rx
/usr/bin/dpid x
/usr/lib64 rx
/usr/share r
-CAP_ALL
bind 0.0.0.0/32:0 dgram ip
connect 0.0.0.0/0:0 stream dgram tcp udp
connect 0.0.0.0/0:80 stream dgram tcp udp
connect 0.0.0.0/0:1024-65535 stream dgram tcp udp
connect 0.0.0.0/0:53 stream dgram tcp udp
connect 0.0.0.0/0:443 stream dgram tcp udp
connect 127.0.0.1/32:0 stream dgram tcp udp
connect 127.0.0.1/32:53 stream dgram tcp udp
connect 127.0.0.1/32:1024-65535 stream tcp
# connect 204.187.15.12/32:80 stream tcp
# connect 204.187.15.4/32:0 stream dgram tcp udp
# connect 204.187.15.4/32:80 stream dgram tcp udp
# connect 142.4.210.26/32:80 stream tcp
# connect 89.16.167.134/32:80 stream tcp
# connect 217.196.43.138/32:80 stream tcp
# connect 96.45.83.40/32:0 dgram udp
# connect 96.45.83.209/32:0 dgram udp
# connect 96.45.82.53/32:0 dgram udp
# connect 96.45.82.134/32:0 stream dgram tcp udp
# connect 96.45.82.134/32:80 stream dgram tcp udp
# connect 131.211.32.146/32:0 dgram udp
# connect 168.100.10.85/32:0 stream dgram tcp udp
# connect 168.100.10.85/32:80 stream dgram tcp udp
# connect 192.254.186.79/32:80 stream tcp
# connect 192.30.252.130/32:80 stream tcp
# connect 192.168.1.1/32:53 dgram udp
connect 178.218.164.164/32:1024-65535 stream dgram tcp udp
connect 192.168.3.0/32:1024-65535 stream dgram tcp udp
sock_allow_family unix inet ipv6 netlink
}
# Role: miro
subject /usr/bin/dpid o {
/ h
/etc h
/etc/ld.so.cache r
/home h
/home/miro/.dillo
/home/miro/.dillo/dpid_comm_keys wcd
/home/miro/.dillo/dpidrc r
/lib64 h
/lib64/ld-2.20.so x
/lib64/libc-2.20.so rx
/usr h
/usr/bin/dpid rx
/usr/lib64/dillo/dpi x
/usr/lib64/dillo/dpi/https x
/usr/lib64/dillo/dpi/https/https.filter.dpi x
/usr/lib64/dillo/dpi/file/file.dpi x
-CAP_ALL
bind 0.0.0.0/32:0 dgram ip
bind 127.0.0.1/32:1024-65535 stream tcp
bind 127.0.0.1/32:1024-65535 stream tcp
# connect 127.0.0.1/32:5021 stream tcp
# connect 127.0.0.1/32:5024 stream tcp
# connect 127.0.0.1/32:5029 stream tcp
connect 192.168.3.0/32:9999 stream dgram tcp udp
connect 178.218.164.164/32:2082-2096 stream dgram tcp udp
sock_allow_family all
}
# Role: miro
subject /usr/lib64/dillo/dpi o {
/ h
/dev h
/dev/urandom r
/etc r
/etc/grsec h
/etc/gshadow h
/etc/gshadow- h
/etc/passwd h
/etc/shadow h
/etc/shadow- h
/etc/ssh h
/home h
/home/miro/.dillo
/home/miro/.dillo/bm.txt rwcd
/home/miro/.dillo/bm.txt.bak rwcd
/home/miro/.dillo/cookies.txt rwc
/home/miro/.dillo/cookiesrc r
/home/miro/.dillo/dpid_comm_keys r
/lib64 rx
/lib64/modules h
/usr h
/usr/lib64 rx
/usr/share r
-CAP_ALL
bind 0.0.0.0/32:0 dgram ip
bind 127.0.0.1/32:1024-65535 stream tcp
# bind 127.0.0.1/32:5024 stream tcp
# bind 127.0.0.1/32:5029 stream tcp
connect 0.0.0.0/0:0 stream dgram tcp udp
connect 0.0.0.0/0:80 stream dgram tcp udp
connect 0.0.0.0/0:1024-65535 stream dgram tcp udp
connect 0.0.0.0/0:53 stream dgram tcp udp
connect 0.0.0.0/0:443 stream dgram tcp udp
connect 127.0.0.1/32:0 stream dgram tcp udp
connect 127.0.0.1/32:53 stream dgram tcp udp
sock_allow_family all
}
And there is probably something not completely right, or even something wrong, with this part of my policy configuration (alhough I'm not sure that it is wrong, and especially what)... Because, Dillo behaves erratically, as I explained in the Dillo mailing list, pasting over from the links given, that it:
http://lists.dillo.org/pipermail/dillo-dev/2015-July/010586.html wrote:So [the link] begins to open, and those maybe 1000 lines per minute
begin to flood my /var/log/messages, Another typical one, just like the
one that I already gave closer to the start of this message of mine:
Jul 7 16:47:16 g0n kernel: grsec: (miro:U:/usr/lib64/dillo/dpi) exec of
/usr/lib64/dillo/dpi/cookies/cookies.dpi
(/usr/lib64/dillo/dpi/cookies/cookies.dpi ) by
/usr/lib64/dillo/dpi/cookies/cookies.dpi[dpid:28919] uid/euid:1000/1000
gid/egid:1000/1000, parent /usr/bin/dpid[dpid:28798] uid/euid:1000/1000
gid/egid:1000/1000
Then I, in another terminal, as root, issue:
# killall dpid
which for grsecurity.net page opening need be done maybe once or rarely
twice if at all, but for debian.net page opening needs to be done a few
times, as it keeps restarting...
And correcting myself that I did need to issue the "killall dpid" quite a few times to start editing on forums.grsecurity.net.
I'll be pouring over this issue, and if some of the advanced readers can give use advice, I'll be grateful!
Cheers!