[systemd-devel] [PATCH 1/3] Allow systemd-tmpfiles to set the file/directory attributes

2015-03-08 Thread Goffredo Baroncelli
From: Goffredo Baroncelli Allow systemd-tmpfiles to set the file/directory attributes, like chattr(1) does. Two more commands are added: 'H' and 'h' to set the attributes, recursively and not. Signed-off-by: Goffredo Baroncelli --- src/tmpfiles/tmpfiles.c | 155

Re: [systemd-devel] [PATCH 1/3] Allow systemd-tmpfiles to set the file/directory attributes

2015-03-08 Thread Ronny Chevalier
2015-03-08 12:48 GMT+01:00 Goffredo Baroncelli : > From: Goffredo Baroncelli > Hi, > Allow systemd-tmpfiles to set the file/directory attributes, like chattr(1) > does. Two more commands are added: 'H' and 'h' to set the attributes, > recursively and not. > > Signed-off-by: Goffredo Baroncelli

Re: [systemd-devel] [PATCH 1/3] Allow systemd-tmpfiles to set the file/directory attributes

2015-03-08 Thread Zbigniew Jędrzejewski-Szmek
On Sun, Mar 08, 2015 at 03:00:38PM +0100, Ronny Chevalier wrote: > 2015-03-08 12:48 GMT+01:00 Goffredo Baroncelli : > > From: Goffredo Baroncelli > > > > Hi, > > > Allow systemd-tmpfiles to set the file/directory attributes, like chattr(1) > > does. Two more commands are added: 'H' and 'h' to se

Re: [systemd-devel] [PATCH 1/3] Allow systemd-tmpfiles to set the file/directory attributes

2015-03-08 Thread Lennart Poettering
On Sun, 08.03.15 12:48, Goffredo Baroncelli (kreij...@libero.it) wrote: > dev_t major_minor; > +int attrib_value; > +int attrib_mask; "int" appears to be a strange choice for a bitmask. The existing chattr_fd() and chattr_path() calls use "unsigned" for this, so this shou

Re: [systemd-devel] [PATCH 1/3] Allow systemd-tmpfiles to set the file/directory attributes

2015-03-09 Thread Goffredo Baroncelli
On 2015-03-08 15:00, Ronny Chevalier wrote: > 2015-03-08 12:48 GMT+01:00 Goffredo Baroncelli : >> From: Goffredo Baroncelli >> > > Hi, > >> Allow systemd-tmpfiles to set the file/directory attributes, like chattr(1) >> does. Two more commands are added: 'H' and 'h' to set the attributes, >> recu

Re: [systemd-devel] [PATCH 1/3] Allow systemd-tmpfiles to set the file/directory attributes

2015-03-09 Thread Ronny Chevalier
2015-03-10 0:17 GMT+01:00 Goffredo Baroncelli : > On 2015-03-08 15:00, Ronny Chevalier wrote: >> 2015-03-08 12:48 GMT+01:00 Goffredo Baroncelli : >>> From: Goffredo Baroncelli >>> >> >> Hi, >> >>> Allow systemd-tmpfiles to set the file/directory attributes, like chattr(1) >>> does. Two more comman

Re: [systemd-devel] [PATCH 1/3] Allow systemd-tmpfiles to set the file/directory attributes

2015-03-10 Thread Goffredo Baroncelli
On 2015-03-08 23:06, Lennart Poettering wrote: > On Sun, 08.03.15 12:48, Goffredo Baroncelli (kreij...@libero.it) wrote: > >> dev_t major_minor; >> +int attrib_value; >> +int attrib_mask; > > "int" appears to be a strange choice for a bitmask. The existing > chattr_fd() a