snapd not give privileges to squid3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd (Ubuntu) |
Confirmed
|
Undecided
|
Celso Providelo |
Bug Description
1) lsb_release -rd
Description: Ubuntu Yakkety Yak (development branch)
Release: 16.10
2) apt-cache policy snapd
snapd:
Installed: 2.0.2
Candidate: 2.0.2
Version table:
*** 2.0.2 500
500 http://
100 /var/lib/
3) squid3 can't open port 3128.
4)
# snap list
Name Version Developer
squid3 3.5.16-2 cprov
ubuntu-core 16.04+20160419.
# snap interfaces
Slot Plug
:network squid3
:network-bind squid3
# netstat -n|grep squid
empty output
# netstat -n|grep 3128
empty output
# grep 3128 /snap/squid3/
# Squid normally listens to port 3128
http_port 3128
ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: snapd 2.0.2
ProcVersionSign
Uname: Linux 4.4.0-22-generic x86_64
ApportVersion: 2.20.1-0ubuntu4
Architecture: amd64
Date: Tue May 24 08:52:01 2016
InstallationDate: Installed on 2014-04-21 (763 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
SourcePackage: snapd
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Alex Rousskov: Needs Fixing
-
Diff: 204 lines (+188/-0)3 files modifiedparts/plugins/x-squid.py (+81/-0)
snapcraft.yaml (+24/-0)
squid.conf (+83/-0)
Changed in snapd (Ubuntu): | |
assignee: | nobody → Celso Providelo (cprov) |
status: | New → Confirmed |
Indeed, it looks like the squid3 snap is buggy: 7.655:49) : auid=1000 uid=0 gid=0 ses=2 pid=4425 comm="squid" exe="/snap/ squid3/ 3/sbin/ squid" sig=31 arch=c000003e syscall=116 compat=0 ip=0x7f0733603f49 code=0x0
```
ubuntu@localhost:~$ sudo squid3
Bad system call
ubuntu@localhost:~$ dmesg |tail -1
[ 2433.369346] audit: type=1326 audit(146460235
ubuntu@localhost:~$ scmp_sys_resolver 116
setgroups
```