Bug#775489: tar: Since version 1.27 tar honours ACLs and filesystem xattrs ( https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=254615 )

2015-01-16 Thread Ingo Wichmann (Linuxhotel)
Package: tar
Version: 1.27.1-1~bpo70+1
Severity: normal

Dear Maintainer,

since version 1.27 tar honours ACLs and filesystem xattrs ( 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=254615 )

Many users would expect, that

tar c --directory orig/ . | tar x --directory restore/

would backup and restore files including permissions correctly. But that is not 
the case:

Create two directories and a file with acls and xattrs on a filesystem that 
supports them:

mkdir orig restore
touch orig/file_with_acl_capability_and_user_xattr
setcap cap_net_raw=p orig/file_with_acl_capability_and_user_xattr
setfattr -n user.testkey -v testvalue 
orig/file_with_acl_capability_and_user_xattr
setfacl -m u:nutzer23:rwx orig/file_with_acl_capability_and_user_xattr

Check whether xattrs and acls are there:

getfattr -m . -d orig/file_with_acl_capability_and_user_xattr
getfacl  orig/file_with_acl_capability_and_user_xattr

Create a simple backup with tar:

tar c --directory orig/ . | tar x --directory restore/

Check whether xattrs and acls are still there:

getfattr -m . -d restore/file_with_acl_capability_and_user_xattr
getfacl  restore/file_with_acl_capability_and_user_xattr

Thats not the case.

The authors of the acl and xattr patch were aware of this problem, but decided 
not to solve it:
  https://bugzilla.redhat.com/show_bug.cgi?id=771927#c24


-- System Information:
Debian Release: 7.8
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages tar depends on:
ii  libacl1  2.2.51-8
ii  libc62.13-38+deb7u6
ii  libselinux1  2.1.9-5

tar recommends no packages.

Versions of packages tar suggests:
ii  bzip21.0.6-4
pn  ncompressnone
pn  tar-scripts  none
ii  xz-utils 5.1.1alpha+20120614-2

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#775495: tar: please use the same options to backup and restore xattrs

2015-01-16 Thread Ingo Wichmann (Linuxhotel)
Package: tar
Version: 1.27.1-1~bpo70+1
Severity: normal
Tags: upstream

Dear Maintainer,

since version 1.27 tar honours ACLs and filesystem xattrs ( 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=254615 )

You can backup files in a directory with the following command:

tar cf backup.tar --xattrs --acls --directory orig/ .

But to restore it, you need to add ''--xattrs-include='*' '', to restore all 
attributes:
tar xf backup.tar --xattrs --acls --xattrs-include='*' --directory restore/

In my opinion, that is not what a user would expect. It would be better, if the 
options to create the archive were the same as the options restoring the 
archive. See also #775489 ( 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=775489 )

A full example:

Create two directories and a file with acls and xattrs on a filesystem that 
supports them:

mkdir orig restore
touch orig/file_with_acl_capability_and_user_xattr
setcap cap_net_raw=p orig/file_with_acl_capability_and_user_xattr
setfattr -n user.testkey -v testvalue 
orig/file_with_acl_capability_and_user_xattr
setfacl -m u:nutzer23:rwx orig/file_with_acl_capability_and_user_xattr

Check whether xattrs and acls are there:

getfattr -m . -d orig/file_with_acl_capability_and_user_xattr
getfacl  orig/file_with_acl_capability_and_user_xattr

Create a backup with tar:

tar c --xattrs --acls --directory orig/ . | tar x --xattrs --acls 
--directory restore/

Check whether xattrs and acls are still there:

getfacl  restore/file_with_acl_capability_and_user_xattr
getfattr -m . -d restore/file_with_acl_capability_and_user_xattr

Here some extended attributes are missing. Workaround:

tar c --xattrs --acls --directory orig/ . | tar x --xattrs --acls 
--xattrs-include='*' --directory restore/

The authors of the acl and xattr patch were aware of this problem, but decided 
not to solve it:
  https://bugzilla.redhat.com/show_bug.cgi?id=771927#c24



-- System Information:
Debian Release: 7.8
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages tar depends on:
ii  libacl1  2.2.51-8
ii  libc62.13-38+deb7u6
ii  libselinux1  2.1.9-5

tar recommends no packages.

Versions of packages tar suggests:
ii  bzip21.0.6-4
pn  ncompressnone
pn  tar-scripts  none
ii  xz-utils 5.1.1alpha+20120614-2

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#348849: fai: loopback device not up

2006-01-19 Thread Ingo Wichmann / Linuxhotel
Package: fai
Version: 2.8.4
Severity: normal


On the installclient lo is not up. If i try to bring it up with ifup manually, 
i get an error:
ifup: failed to open statefile /etc/network/run/ifstate: Read-only file
system

ifconfig lo 127.0.0.1 
works

nfs-mounts are slow when loopback is not up


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages fai depends on:
ii  libapt-pkg-perl   0.1.13 Perl interface to libapt-pkg
ii  perl  5.8.4-8Larry Wall's Practical Extraction 

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#348857: fai: task debconf exits with error if no file is found

2006-01-19 Thread Ingo Wichmann / Linuxhotel
Package: fai
Version: 2.8.4
Severity: normal


if there are no files for the classes of the installclient, taks_debconf
exits with error. so the install is no fully automatic ...

The Error ist in /usr/bin/fai-debconf, line 56:
packages=$(awk '{print $1}' $LOGDIR/debconf.data | sort | uniq)

should be replaced by something like:

packages=$(test -s  awk '{print $1}' $LOGDIR/debconf.data | sort |
uniq)

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages fai depends on:
ii  libapt-pkg-perl   0.1.13 Perl interface to libapt-pkg
ii  perl  5.8.4-8Larry Wall's Practical Extraction 

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]