[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2016-04-12 Thread Scott Moser
Marking as 'fix-released' in maas in wily and xenial, as the fix went into 
trunk at revision 4028.
https://code.launchpad.net/~rvb/maas/lp-1313550/+merge/262314

** Changed in: maas (Ubuntu Wily)
   Status: New => Fix Released

** Changed in: maas (Ubuntu)
   Status: Confirmed => Fix Released

** Changed in: maas (Ubuntu Vivid)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2016-01-22 Thread Andres Rodriguez
** Changed in: maas
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2015-11-09 Thread Stéphane Graber
** Changed in: lxc (Ubuntu Precise)
   Status: Confirmed => Won't Fix

** No longer affects: lxc (Ubuntu Precise)

** No longer affects: lxc (Ubuntu Saucy)

** Changed in: lxc (Ubuntu Trusty)
   Status: Confirmed => Triaged

** Changed in: lxc (Ubuntu)
   Status: Confirmed => Triaged

** Also affects: iputils (Ubuntu Wily)
   Importance: Undecided
   Status: New

** Also affects: tar (Ubuntu Wily)
   Importance: Undecided
   Status: New

** Also affects: lxc (Ubuntu Wily)
   Importance: Undecided
   Status: New

** Also affects: maas (Ubuntu Wily)
   Importance: Undecided
   Status: New

** Also affects: curtin (Ubuntu Wily)
   Importance: Undecided
   Status: New

** Also affects: iputils (Ubuntu Vivid)
   Importance: Undecided
   Status: New

** Also affects: tar (Ubuntu Vivid)
   Importance: Undecided
   Status: New

** Also affects: lxc (Ubuntu Vivid)
   Importance: Undecided
   Status: New

** Also affects: maas (Ubuntu Vivid)
   Importance: Undecided
   Status: New

** Also affects: curtin (Ubuntu Vivid)
   Importance: Undecided
   Status: New

** Changed in: lxc (Ubuntu Vivid)
   Importance: Undecided => High

** Changed in: lxc (Ubuntu Vivid)
   Status: New => Triaged

** Changed in: lxc (Ubuntu Wily)
   Importance: Undecided => High

** Changed in: lxc (Ubuntu Wily)
   Status: New => Triaged

** No longer affects: iputils (Ubuntu Vivid)

** No longer affects: iputils (Ubuntu Wily)

** No longer affects: curtin (Ubuntu Vivid)

** No longer affects: curtin (Ubuntu Wily)

** No longer affects: tar (Ubuntu Vivid)

** No longer affects: tar (Ubuntu Wily)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2015-06-18 Thread MAAS Lander
** Changed in: maas
   Status: Confirmed = Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2015-06-18 Thread Scott Moser
** Changed in: curtin
   Status: Confirmed = Fix Committed

** Changed in: curtin (Ubuntu)
   Status: Confirmed = Fix Released

** No longer affects: curtin (Ubuntu Saucy)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2015-06-18 Thread Raphaël Badin
** Branch linked: lp:~rvb/maas/lp-1313550

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2015-06-15 Thread Launchpad Bug Tracker
** Branch linked: lp:~smoser/maas/lp-1313550

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2015-02-05 Thread Serge Hallyn
Should this be marked fix-released (or invalid) for lxc?

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2015-01-05 Thread Launchpad Bug Tracker
This bug was fixed in the package curtin - 0.1.0~bzr195-0ubuntu1~14.04.1

---
curtin (0.1.0~bzr195-0ubuntu1~14.04.1) trusty-proposed; urgency=medium

  * New upstream snapshot.
- hardware enablement: ppc64 support (LP: #1386394)
- hardware enablement: know kernel mapping for utopic (hwe-u = 3.16)
  (LP: #1386394)
- feature: support installing disk images including windows. (LP: #1386394)
- feature: support creating swap file (LP: #1386394)
- feature: support reporting logs back to MAAS (LP: #1386394)
- feature: enable logging of installation to /var/log/curtin/install.log
  (LP: #1378910)
- bug fix: extract tar files with xattr support when available (LP: 
#1313550)
- bug fix: fix broken use of os.path.join for curtin hooks (LP: #1328521)
- bug fix: util.subp to decode command output as utf-8 (LP: #1370249).
- bug fix: call update-grub to ensure that /boot/grub/grub.cfg is created
  (LP: #1373137)
- bug fix: do not use '--acl' when extracting tar files (LP: #1382632)
  as it inadvertently writes default directory acls.
- bug fix: invoke lsblk with '--output' rather than '--out' to avoid
  ambiguity in newer versions of lsblk (LP: #1386275)
- internal: part2bd helper added in helpers/common
- internal: helpers: inherit curtin_verbosity (make the helper tools
  verbose if curtin invoked with verbose flags)
 -- Scott Moser smo...@ubuntu.com   Mon, 27 Oct 2014 20:58:43 -0400

** Changed in: curtin (Ubuntu Trusty)
   Status: Fix Committed = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-12-17 Thread Larry Michel
This was the test case:

1) Update trusty daily root-tgz image with a copy of dcap and cap properties.
2) Sync image to cache
3) Deploy a node with trusty
4) Access deployed node
5) Ensure that cap properties for the new file are preserved on deployed system.

This test passed.

Here are test details:
==
1) Update image
root@ubuntumaas:/var/lib/maas/boot-resources/cache/root# ls -l usr/bin/dpkgcap
-rwxr-xr-x 1 root root 261840 Dec 17 09:33 usr/bin/dpkgcap
root@ubuntumaas:/var/lib/maas/boot-resources/cache/root# getcap usr/bin/dpkgcap
usr/bin/dpkgcap = cap_net_raw+p
root@ubuntumaas:/var/lib/maas/boot-resources/cache/root# tar --xattrs 
'--xattrs-include=*' -czf root.tar.gz *
tar: root.tar.gz: file changed as we read it

2) Sync image
root@ubuntumaas:/var/lib/maas/boot-resources/cache/root# ls -l
total 550812
drwxr-xr-x  2 root root  4096 Dec 17 02:54 bin
drwxr-xr-x  3 root root  4096 Dec  8 14:34 boot
drwxr-xr-x  6 root root  4096 Dec  8 14:34 dev
drwxr-xr-x 96 root root  4096 Dec 17 02:56 etc
drwxr-xr-x  2 root root  4096 Apr 10  2014 home
lrwxrwxrwx  1 root root33 Dec  8 14:33 initrd.img - 
boot/initrd.img-3.13.0-40-generic
drwxr-xr-x 22 root root  4096 Dec  8 14:31 lib
drwxr-xr-x  2 root root  4096 Dec  4 18:40 lib64
drwx--  2 root root  4096 Dec  4 18:43 lost+found
drwxr-xr-x  2 root root  4096 Dec  4 18:40 media
drwxr-xr-x  2 root root  4096 Apr 10  2014 mnt
drwxr-xr-x  2 root root  4096 Dec  4 18:40 opt
drwxr-xr-x  2 root root  4096 Apr 10  2014 proc
drwx--  2 root root  4096 Dec 17 02:05 root
-rw-r--r--  1 root root 563942052 Dec 17 09:40 root.tar.gz
drwxr-xr-x  4 root root  4096 Dec  8 14:33 run
drwxr-xr-x  2 root root  4096 Dec 17 02:54 sbin
drwxr-xr-x  2 root root  4096 Dec  4 18:40 srv
drwxr-xr-x  2 root root  4096 Mar 12  2014 sys
drwxrwxrwt  4 root root  4096 Dec 17 02:55 tmp
drwxr-xr-x 10 root root  4096 Dec  4 18:40 usr
drwxr-xr-x 12 root root  4096 Dec  4 18:43 var
lrwxrwxrwx  1 root root30 Dec  8 14:33 vmlinuz - 
boot/vmlinuz-3.13.0-40-generic
root@ubuntumaas:/var/lib/maas/boot-resources/cache/root# ls -l 
../root-tgz-3d15bdc99ae5cfe7e0be2e06e084636dc6fd809ec09ca54732ec83c9224376a2 
-rw-r--r-- 1 root root 424884409 Dec 17 03:28 
../root-tgz-3d15bdc99ae5cfe7e0be2e06e084636dc6fd809ec09ca54732ec83c9224376a2
root@ubuntumaas:/var/lib/maas/boot-resources/cache/root# cp root.tar.gz 
../root-tgz-3d15bdc99ae5cfe7e0be2e06e084636dc6fd809ec09ca54732ec83c9224376a2 
root@ubuntumaas:/var/lib/maas/boot-resources/cache/root# ls -l 
../root-tgz-3d15bdc99ae5cfe7e0be2e06e084636dc6fd809ec09ca54732ec83c9224376a2 
-rw-r--r-- 1 root root 563942052 Dec 17 09:42 
../root-tgz-3d15bdc99ae5cfe7e0be2e06e084636dc6fd809ec09ca54732ec83c9224376a2
root@ubuntumaas:/var/lib/maas/boot-resources/cache/root# service tgt restart
tgt stop/waiting
tgt start/running, process 16692
root@ubuntumaas:/var/lib/maas/boot-resources/cache/root# cp 
../root-tgz-3d15bdc99ae5cfe7e0be2e06e084636dc6fd809ec09ca54732ec83c9224376a2 
../../current/ubuntu/amd64/generic/trusty/daily/root-tgz 
root@ubuntumaas:/var/lib/maas/boot-resources/cache/root# sync;sync
root@ubuntumaas:/var/lib/maas/boot-resources/cache/root# exit
logout

3) Deploy node from maas

4) Access deployed node
lmic@ubuntumaas:/var/lib/maas/boot-resources/cache/root$ ssh 192.168.224.100
@@@
@WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
5b:1b:de:c3:ff:d6:e5:64:3c:b7:be:19:55:69:b5:7e.
Please contact your system administrator.
Add correct host key in /home/lmic/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/lmic/.ssh/known_hosts:20
  remove with: ssh-keygen -f /home/lmic/.ssh/known_hosts -R 192.168.224.100
ECDSA host key for 192.168.224.100 has changed and you have requested strict 
checking.
Host key verification failed.
lmic@ubuntumaas:/var/lib/maas/boot-resources/cache/root$  ssh-keygen -f 
/home/lmic/.ssh/known_hosts -R 192.168.224.100
# Host 192.168.224.100 found: line 20 type ECDSA
/home/lmic/.ssh/known_hosts updated.
Original contents retained as /home/lmic/.ssh/known_hosts.old
lmic@ubuntumaas:/var/lib/maas/boot-resources/cache/root$ ssh 192.168.224.100
The authenticity of host '192.168.224.100 (192.168.224.100)' can't be 
established.
ECDSA key fingerprint is 5b:1b:de:c3:ff:d6:e5:64:3c:b7:be:19:55:69:b5:7e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.224.100' (ECDSA) to the list of known hosts.
Permission denied (publickey).

[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-12-04 Thread Rolf Leggewie
saucy has seen the end of its life and is no longer receiving any
updates. Marking the saucy task for this ticket as Won't Fix.

** Changed in: maas (Ubuntu Saucy)
   Status: Confirmed = Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-12-04 Thread Rolf Leggewie
saucy has seen the end of its life and is no longer receiving any
updates. Marking the saucy task for this ticket as Won't Fix.

** Changed in: tar (Ubuntu Saucy)
   Status: Confirmed = Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-12-04 Thread Rolf Leggewie
saucy has seen the end of its life and is no longer receiving any
updates. Marking the saucy task for this ticket as Won't Fix.

** Changed in: lxc (Ubuntu Saucy)
   Status: Confirmed = Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-10-30 Thread Brian Murray
Hello Clint, or anyone else affected,

Accepted curtin into trusty-proposed. The package will build now and be
available at
http://launchpad.net/ubuntu/+source/curtin/0.1.0~bzr195-0ubuntu1~14.04.1
in a few hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed.  Your feedback will aid us getting this update
out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, and change the tag
from verification-needed to verification-done. If it does not fix the
bug for you, please add a comment stating that, and change the tag to
verification-failed.  In either case, details of your testing will help
us make a better decision.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance!

** Changed in: curtin (Ubuntu Trusty)
   Status: Confirmed = Fix Committed

** Tags removed: verification-done

** Tags added: verification-needed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-10-30 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/trusty-proposed/curtin

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-10-27 Thread Scott Moser
** Description changed:

  With trusty, /bin/ping relies on having extended attributes and kernel
  capabilities to gain the cap_net_raw+p capability. This allows removing
  the suid bit.
  
  However, the tarball cloud images do not preserve the extended
  attributes, and thus /bin/ping does not work on a system derived from
  them.
  
  Summary of problem per package:
   * lxc: ubuntu cloud template needs to extract
   * download template needs to extract with xattr flags
   * server side download creation tools need xattr flags
   * [unconfirmed] tarball caches need creation and extraction with xattr flags
   * tar: need the '--xattr' and '--acl' flags backported
   * maas: uec2roottgz needs to use xattr/acl flags
   * curtin: extraction needs to use xattr/acl flags.
   * cloud-image-build: needs to create -root.tar.gz with xattr/acl flags
  
- SRU curtin
- ==
- 
- [Impact]
- 
- As the original bug report description mentions, curtin's extraction
- needs to use xattr/acl flags.
- 
- [Test Case]
- 
- To reproduce this bug, use curtin extraction without the extended file
- attributes.
- 
- [Regression Potential]
- 
- Since the patch for this bug fix *looks* to see if there are extended
- file attributes, it should work in the event that they are there or are
- not there or are.  More specifically, if tar cmd supports xattrs, curtin
- will return the required flags to extract them.  This lowers the
- probability of introducing a regression.
+ Related Bugs:
+  * bug 1382632: horizon insecure key file permissions
+  * bug 1386237: tar strange behavior with --acl
+  * bug 1313550: ping broken (xattrs lost in tar extraction)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-10-27 Thread Scott Moser
** Description changed:

  With trusty, /bin/ping relies on having extended attributes and kernel
  capabilities to gain the cap_net_raw+p capability. This allows removing
  the suid bit.
  
  However, the tarball cloud images do not preserve the extended
  attributes, and thus /bin/ping does not work on a system derived from
  them.
  
  Summary of problem per package:
   * lxc: ubuntu cloud template needs to extract
   * download template needs to extract with xattr flags
   * server side download creation tools need xattr flags
   * [unconfirmed] tarball caches need creation and extraction with xattr flags
   * tar: need the '--xattr' and '--acl' flags backported
   * maas: uec2roottgz needs to use xattr/acl flags
   * curtin: extraction needs to use xattr/acl flags.
   * cloud-image-build: needs to create -root.tar.gz with xattr/acl flags
  
  Related Bugs:
-  * bug 1382632: horizon insecure key file permissions
-  * bug 1386237: tar strange behavior with --acl
-  * bug 1313550: ping broken (xattrs lost in tar extraction)
+  * bug 1382632: horizon insecure key file permissions
+  * bug 1386237: tar strange behavior with --acl and xattr
+  * bug 1313550: ping broken (xattrs lost in tar extraction)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-10-24 Thread Newell Jensen
** Description changed:

  With trusty, /bin/ping relies on having extended attributes and kernel
  capabilities to gain the cap_net_raw+p capability. This allows removing
  the suid bit.
  
  However, the tarball cloud images do not preserve the extended
  attributes, and thus /bin/ping does not work on a system derived from
  them.
  
  Summary of problem per package:
-  * lxc: ubuntu cloud template needs to extract
-  * download template needs to extract with xattr flags
-  * server side download creation tools need xattr flags
-  * [unconfirmed] tarball caches need creation and extraction with xattr flags
-  * tar: need the '--xattr' and '--acl' flags backported
-  * maas: uec2roottgz needs to use xattr/acl flags 
-  * curtin: extraction needs to use xattr/acl flags.
-  * cloud-image-build: needs to create -root.tar.gz with xattr/acl flags
+  * lxc: ubuntu cloud template needs to extract
+  * download template needs to extract with xattr flags
+  * server side download creation tools need xattr flags
+  * [unconfirmed] tarball caches need creation and extraction with xattr flags
+  * tar: need the '--xattr' and '--acl' flags backported
+  * maas: uec2roottgz needs to use xattr/acl flags
+  * curtin: extraction needs to use xattr/acl flags.
+  * cloud-image-build: needs to create -root.tar.gz with xattr/acl flags
+ 
+ 
+ SRU curtin
+ ==
+ 
+ [Impact]
+ 
+ As the original bug report description mentions, curtin's extraction
+ needs to use xattr/acl flags.
+ 
+ [Test Case]
+ 
+ To reproduce this bug, use curtin extraction without the extended file
+ attributes.
+ 
+ [Regression Potential]
+ 
+ TBD

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-10-24 Thread Newell Jensen
** Description changed:

  With trusty, /bin/ping relies on having extended attributes and kernel
  capabilities to gain the cap_net_raw+p capability. This allows removing
  the suid bit.
  
  However, the tarball cloud images do not preserve the extended
  attributes, and thus /bin/ping does not work on a system derived from
  them.
  
  Summary of problem per package:
   * lxc: ubuntu cloud template needs to extract
   * download template needs to extract with xattr flags
   * server side download creation tools need xattr flags
   * [unconfirmed] tarball caches need creation and extraction with xattr flags
   * tar: need the '--xattr' and '--acl' flags backported
   * maas: uec2roottgz needs to use xattr/acl flags
   * curtin: extraction needs to use xattr/acl flags.
   * cloud-image-build: needs to create -root.tar.gz with xattr/acl flags
  
- 
  SRU curtin
  ==
  
  [Impact]
  
  As the original bug report description mentions, curtin's extraction
  needs to use xattr/acl flags.
  
  [Test Case]
  
  To reproduce this bug, use curtin extraction without the extended file
  attributes.
  
  [Regression Potential]
  
- TBD
+ Since the patch for this bug fix *looks* to see if there are extended
+ file attributes, it should work in the event that they are there or are
+ not there or are.  More specifically, if tar cmd supports xattrs, curtin
+ will return the required flags to extract them.  This lowers the
+ probability of introducing a regression.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-10-21 Thread Launchpad Bug Tracker
** Branch linked: lp:~smoser/ubuntu/trusty/curtin/sru-utopic-level

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-10-21 Thread Scott Moser
** Changed in: curtin (Ubuntu Saucy)
   Status: Confirmed = Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-06-09 Thread Launchpad Bug Tracker
** Branch linked: lp:curtin

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-05-08 Thread Jason Gerard DeRose
This also affects the `gnome-keyring` package. The System76 imaging
system (Tribble) uses a tar-based approach similar to the MAAS fast-path
installer, and we've had to add a work-around for /usr/bin/gnome-
keyring-daemon on our desktop images:

$ getcap /usr/bin/gnome-keyring-daemon 
/usr/bin/gnome-keyring-daemon = cap_ipc_lock+ep

I reckon there are other imaging systems out there likewise affected by
this. I strongly feel that the correct fix is to fix tar so its --xattrs
option works as expected. But in the meantime, it might be good to
switch back to using suid on /usr/bin/gnome-keyring-daemon.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-05-08 Thread Stéphane Graber
gnome-keyring-daemon isn't really a problem because all official images
shipping it have installer hooks to restore the flag.

Setting the binary setuid would also be completely wrong as we never
want this to run as root, we just want it to have extra ipc locking
capabilities. My understanding is that those aren't even entirely
required and that it has a fallback mode for systems where the
capability isn't set.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-05-08 Thread Jason Gerard DeRose
Stéphane,

Gotcha, thanks for the feedback! So am I correct in thinking that the
--xattrs option is currently broken in tar on 14.04? If so, is there any
chance this could be fixed in an SRU?

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-05-08 Thread Stéphane Graber
So yeah, my understanding is that --xattr is broken at the moment, we should 
fix that as an SRU but we also have the problem that:
 1) It's not set by default in either create or extract mode
 2) Not all tar implementations we use support it
 3) Not all version of gnu-tar we support have it

So as long as we don't get this fixed, we shouldn't rely on xattrs
working in tarballs and should investigate alternative methods of
shipping and setting those attributes.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-05-08 Thread Clint Byrum
Excerpts from Jason Gerard DeRose's message of 2014-05-08 16:45:23 UTC:
 Stéphane,
 
 Gotcha, thanks for the feedback! So am I correct in thinking that the
 --xattrs option is currently broken in tar on 14.04? If so, is there any
 chance this could be fixed in an SRU?
 

No, --xattrs works fine in 14.04. The problem is that it must be used.
Note that you also have to use --xattrs-include=* while creating the
tar to make use of it (which is, IMO, a bug, as if I said --xattrs,
I meant _USE XATTRS_. ;)

Anyway, another problem is that 12.04 tar does not support it, so the
tarball images are not consumable from the previous release, which is a
problem for a shop trying to upgrade. I think that may be a worthy SRU,
as tars with xattrs will start to become more and more commonplace over
the next 3 years that 12.04 is still a supported platform.

Certainly somebody should get 14.04's tar into precise-backports while
this SRU is debated.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-05-08 Thread Jason Gerard DeRose
Clint,

Ah, thanks for bringing up --xattrs-include=*, I didn't notice this
option!

I agree this is really a bug/misfeature in tar... if I use --xattrs both
when creating and unpacking a tarball, I expect it to just work.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-05-07 Thread Adam Conrad
** Tags added: verification-needed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-05-07 Thread Stéphane Graber
After some more discussion we decided to simply make it setuid again for
now and then spend some time thinking about a proper solution for all
this, possibly involving small dpkg/debhelper changes so there's a
cleaner nicer way of declaring filesystem capabilities.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-05-07 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/trusty-proposed/iputils

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-05-07 Thread Stéphane Graber
** Tags removed: verification-needed
** Tags added: verification-done

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-05-07 Thread Launchpad Bug Tracker
This bug was fixed in the package iputils - 3:20121221-4ubuntu1.1

---
iputils (3:20121221-4ubuntu1.1) trusty; urgency=medium

  * Mark ping and ping6 setuid again as there's currently no good ways
to have capabilities be kept in all our images. (LP: #1313550)
 -- Stephane Graber stgra...@ubuntu.com   Wed, 07 May 2014 14:46:35 -0500

** Changed in: iputils (Ubuntu)
   Status: Confirmed = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-04-29 Thread Scott Moser
one other hting to think about if we're going the --xattrs route
anywhere, we likely have to consider the fact that '--xattrs' might
*fail* on a filesystem that doesn't support xattrs.  I've not looked at
how tar handles that.  that makes that a bit tricky.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-04-29 Thread Scott Moser
trusty tarball daily (20140429) now correctly contains the capability info:
$ wget 
http://cloud-images.ubuntu.com/trusty/20140429/trusty-server-cloudimg-amd64-root.tar.gz
$ sudo tar --xattrs '--xattrs-include=*' --acls -Szxpf 
trusty-server-cloudimg-amd64-root.tar.gz bin/ping

$ attr -l bin/ping
Attribute capability has a 20 byte value for bin/ping
$ getcap bin/ping
bin/ping = cap_net_raw+p

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-04-29 Thread Scott Moser
I am kind of leaning towards stgraber's suggestion of fixing iputils
in 14.04 to be setuid.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-04-29 Thread Serge Hallyn
This debdiff against the precise version of tar implements xattr
support.

** Patch added: tar-xattr.debdiff
   
https://bugs.launchpad.net/ubuntu/+source/iputils/+bug/1313550/+attachment/4100853/+files/tar-xattr.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-04-29 Thread Ubuntu Foundations Team Bug Bot
** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-04-28 Thread Ryan Beisner
Is this a dup of 1302192?  
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1302192

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-04-28 Thread Scott Moser
** Also affects: maas (Ubuntu)
   Importance: Undecided
   Status: New

** Also affects: maas
   Importance: Undecided
   Status: New

** Changed in: maas
   Status: New = Confirmed

** Changed in: iputils (Ubuntu)
   Status: New = Confirmed

** Changed in: maas (Ubuntu)
   Status: New = Confirmed

** Changed in: maas
   Importance: Undecided = High

** Changed in: iputils (Ubuntu)
   Importance: Undecided = High

** Changed in: maas (Ubuntu)
   Importance: Undecided = High

** Tags added: cloud-images cloud-images-build

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/maas/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-04-28 Thread Scott Moser
This would seem straight forward enough (I thought I could just add '--
xattrs' to both creation and extraction of tar), but that doesn't seem
to look.  See the attachment, and its output here, it seems that tar is
losing these.

$ sudo /tmp/xattr-save-ping 
$ ls -l /bin/ping
-rwxr-xr-x 1 root root 44168 Mar 15 02:24 /bin/ping
$ attr -l /bin/ping
Attribute capability has a 20 byte value for /bin/ping
$ tar -C / --xattrs -Scpf - bin/ping | tar -C $tmpd --xattrs -Sxpf -
$ ( cd $tmpd  attr -l bin/ping )
$ ( cd $tmpd  attr -l ping_rsync )
Attribute capability has a 20 byte value for ping_rsync

So, above, it seems like bin/ping that was created by tar did not get
the attr laid down.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-04-28 Thread Scott Moser
OK,
  so i put this as affecting curtin and affecting maas.
  - maas: uec2roottgz (which creates the -root.tar.gz file from an image file) 
will be affected
  - curtin: extracts the tarball and will need to do so with xattrs in place.


** Also affects: curtin
   Importance: Undecided
   Status: New

** Also affects: curtin (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: curtin
   Status: New = Confirmed

** Changed in: curtin (Ubuntu)
   Status: New = Confirmed

** Changed in: curtin
   Importance: Undecided = High

** Changed in: curtin (Ubuntu)
   Importance: Undecided = High

** Attachment added: example attempt to save and restore xattrs with tar
   
https://bugs.launchpad.net/ubuntu/+source/curtin/+bug/1313550/+attachment/4099485/+files/xattr-save-ping

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-04-28 Thread Ryan Beisner
FYI may also want to see comment 5 from previous/related bug 1302192;  
attributes were OK in cloudimage at that point.  
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1302192/comments/5

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-04-28 Thread Scott Moser
** Also affects: lxc (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: lxc (Ubuntu)
   Status: New = Confirmed

** Changed in: lxc (Ubuntu)
   Importance: Undecided = High

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-04-28 Thread Scott Moser
OK, so with 14.04 level maas, this is fairly trivial.
  'tar --xattrs --xattrs-include=*'

Unfortunately, 12.04 level maas doesn't have that, so we'd have to do
some backwards compatibility check/fix/hack if we want to support

the fix in the installer was to do something like:
 getfattr | setfattr


sudo getfattr --absolute-names --recursive -hysical --match=-  --dump /
seems to dump attrs, we could store that inside the tar as a file.

** Attachment added: updated xattr-save-ping that works
   
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1313550/+attachment/4099531/+files/xattr-save-ping

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-04-28 Thread Scott Moser
** Also affects: tar (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: tar (Ubuntu)
   Status: New = Fix Released

** Changed in: tar (Ubuntu)
   Importance: Undecided = Medium

** Also affects: iputils (Ubuntu Precise)
   Importance: Undecided
   Status: New

** Also affects: tar (Ubuntu Precise)
   Importance: Undecided
   Status: New

** Also affects: lxc (Ubuntu Precise)
   Importance: Undecided
   Status: New

** Also affects: maas (Ubuntu Precise)
   Importance: Undecided
   Status: New

** Also affects: curtin (Ubuntu Precise)
   Importance: Undecided
   Status: New

** Also affects: iputils (Ubuntu Saucy)
   Importance: Undecided
   Status: New

** Also affects: tar (Ubuntu Saucy)
   Importance: Undecided
   Status: New

** Also affects: lxc (Ubuntu Saucy)
   Importance: Undecided
   Status: New

** Also affects: maas (Ubuntu Saucy)
   Importance: Undecided
   Status: New

** Also affects: curtin (Ubuntu Saucy)
   Importance: Undecided
   Status: New

** Changed in: tar (Ubuntu Precise)
   Status: New = Confirmed

** Changed in: tar (Ubuntu Precise)
 Assignee: (unassigned) = Serge Hallyn (serge-hallyn)

** Changed in: tar (Ubuntu Precise)
   Importance: Undecided = High

** Also affects: iputils (Ubuntu Trusty)
   Importance: Undecided
   Status: New

** Also affects: tar (Ubuntu Trusty)
   Importance: Undecided
   Status: New

** Also affects: lxc (Ubuntu Trusty)
   Importance: Undecided
   Status: New

** Also affects: maas (Ubuntu Trusty)
   Importance: Undecided
   Status: New

** Also affects: curtin (Ubuntu Trusty)
   Importance: Undecided
   Status: New

** Changed in: tar (Ubuntu Trusty)
   Importance: Undecided = High

** Changed in: tar (Ubuntu Trusty)
   Status: New = Fix Released

** No longer affects: iputils (Ubuntu Precise)

** No longer affects: iputils (Ubuntu Saucy)

** No longer affects: curtin (Ubuntu Precise)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-04-28 Thread Launchpad Bug Tracker
** Branch linked: lp:~smoser/vmbuilder/automated-ec2-builds-tar-xattr

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-04-28 Thread Launchpad Bug Tracker
** Branch linked: lp:~smoser/curtin/lp1313550

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-04-28 Thread Scott Moser
** No longer affects: maas (Ubuntu Precise)

** Changed in: tar (Ubuntu Saucy)
   Status: New = Confirmed

** Changed in: maas (Ubuntu Trusty)
   Status: New = Confirmed

** Changed in: maas (Ubuntu Saucy)
   Status: New = Confirmed

** Changed in: lxc (Ubuntu Trusty)
   Status: New = Confirmed

** Changed in: lxc (Ubuntu Trusty)
   Importance: Undecided = High

** Changed in: maas (Ubuntu Saucy)
   Importance: Undecided = High

** Changed in: maas (Ubuntu Trusty)
   Importance: Undecided = High

** Changed in: lxc (Ubuntu Precise)
   Importance: Undecided = High

** Changed in: lxc (Ubuntu Precise)
   Status: New = Confirmed

** Changed in: lxc (Ubuntu Saucy)
   Importance: Undecided = High

** Changed in: lxc (Ubuntu Saucy)
   Status: New = Confirmed

** No longer affects: iputils (Ubuntu Trusty)

** Changed in: curtin (Ubuntu Saucy)
   Importance: Undecided = High

** Changed in: curtin (Ubuntu Saucy)
   Status: New = Confirmed

** Changed in: curtin (Ubuntu Trusty)
   Importance: Undecided = High

** Changed in: curtin (Ubuntu Trusty)
   Status: New = Confirmed

** Changed in: tar (Ubuntu Saucy)
   Importance: Undecided = High

** Description changed:

  With trusty, /bin/ping relies on having extended attributes and kernel
  capabilities to gain the cap_net_raw+p capability. This allows removing
  the suid bit.
  
  However, the tarball cloud images do not preserve the extended
  attributes, and thus /bin/ping does not work on a system derived from
  them.
+ 
+ Summary of problem per package:
+  * lxc: ubuntu cloud template needs to extract
+  * download template needs to extract with xattr flags
+  * server side download creation tools need xattr flags
+  * [unconfirmed] tarball caches need creation and extraction with xattr flags
+  * tar: need the '--xattr' and '--acl' flags backported
+  * maas: uec2roottgz needs to use xattr/acl flags 
+  * curtin: extraction needs to use xattr/acl flags.
+  * cloud-image-build: needs to create -root.tar.gz with xattr/acl flags

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-04-28 Thread Serge Hallyn
Unfortunately src/xattrs.c is wholly non-existent in the precise
version.  So backporting xattr support would include src/xattr.{c,h} as
well as inserting the calls to functions defined there throughout the
rest of the code.  Unfortunately that doesn't seem SRU-able.  The safest
way forward would be to take 1.27 into precise (which I assume is also
not sru-able)

** Changed in: tar (Ubuntu Precise)
 Assignee: Serge Hallyn (serge-hallyn) = (unassigned)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-04-28 Thread Scott Moser
Serge,
  I don't see why new files would make something non-SRU-able.
  I dont' think that is a blocker in and of itself.

 The complexity of the patch and likelyhood of regression is the bigger
concern.

 We have a real bug here, and we have 2 ways to fix it (possibly others that 
i've not thought of):
a.) backport functionality into 'tar' and then make programs able to use that 
functionality in exactly the same way that they would/do in Utopic.
b.) craft a special tarball that has a '.xattrs_hack file in it, and then SRU 
patches to programs to say something like if there is a .xattrs_hack file in a 
tarball, then apply those attributes with setfattr and then remove 
.xattrs_hack.

b seems a hack, and probably means adding a dependency on 'attr' to maas
and lxc. Admittedly maas only has this problem in saucy and trusty (and
saucy EOL shortly).  So lxc on precise is the real issue.

In summary, to fix this bug in precise, we can do it fairly cleanly (and
I think probably pretty safely) with 'a', or hackily in 'b'.

If I were SRU team, 'a' would look more appealing, or some other option
I havent thought of.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-04-28 Thread Stéphane Graber
There's a third I mentioned on IRC, just make ping setuid again for
14.04 and only switch to capabilities in 14.10, assuming we don't intend
to support 14.10 on 12.04, we'll be good as 14.04 will have a suitable
version of tar.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 1313550] Re: ping does not work as a normal user on trusty tarball cloud images.

2014-04-28 Thread Serge Hallyn
Quoting Scott Moser (smo...@ubuntu.com):
 Serge,
   I don't see why new files would make something non-SRU-able.

A new file by itself would be nice as it's self-contained.  It's
particularly adding the new calls that would seem protentially
problematic.

Anyway if it seems sane I'll post a debdiff at some point hopefully
tomorrow.  But given the importance of tar in general (meaning, if
there were regressions in 1.27 in trusty we would know about them)
I think backporting 1.27 to precise seems more sane than cherrypicking
something very intrusive and hoping we don't get weird side effects
or subtle bugs.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1313550

Title:
  ping does not work as a normal user on trusty tarball cloud images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1313550/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs