Re: [systemd-devel] possible bugs w/ defining .mount services

2016-01-25 Thread Lennart Poettering
On Mon, 25.01.16 18:04, Jonathan Dowland (jon+systemd-de...@alcopop.org) wrote: > Hi, > > Am I wrong to believe that with one can interchangeably refer to .mount > units via their paths? It seems to work inconsistently. (this all with > version 215). Only "systemctl" and "journalctl -u" will tr

Re: [systemd-devel] possible bugs w/ defining .mount services

2016-01-25 Thread Mantas Mikulėnas
On Mon, Jan 25, 2016 at 8:04 PM, Jonathan Dowland < jon+systemd-de...@alcopop.org> wrote: > Hi, > > Am I wrong to believe that with one can interchangeably refer to .mount > units via their paths? It seems to work inconsistently. (this all with > version 215). > No, the shortcuts are only suppor

[systemd-devel] possible bugs w/ defining .mount services

2016-01-25 Thread Jonathan Dowland
Hi, Am I wrong to believe that with one can interchangeably refer to .mount units via their paths? It seems to work inconsistently. (this all with version 215). In a service, if I specify BindsTo=backup.mount Where backup.mount is a systemd unit, the service is correctly stopped when the p

Re: [systemd-devel] the correct way to define crypt partitions, going forward

2016-01-25 Thread Jonathan Dowland
Hi, Thanks for your reply. On Fri, Jan 22, 2016 at 07:23:53PM +0200, Mantas Mikulėnas wrote: > Some distros have started using lvmetad to set up LVM in a more hotplug > manner – it should work here as well. Thanks for the hint. Indeed, with lvmetad, the need for a manual "vgchange -a y" goes awa

Re: [systemd-devel] systemd-nspawn

2016-01-25 Thread Pascal
hi again, some calrification : I'm on archlinux and systemd version is systemd 228 +PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN the systemd-nspawn documentation

Re: [systemd-devel] euid 0 not honored authenticating control socket?

2016-01-25 Thread Simon McVittie
On 21/01/16 18:12, Charles Duffy wrote: > I have a setuid-root executable ... and now you have two problems? :-) setuid executables are inherently dangerous: they run with one set of privileges (their euid), but their environment variables, resource limits, inherited file descriptors, etc. are co

Re: [systemd-devel] dhcp address change callback?

2016-01-25 Thread Lennart Poettering
On Mon, 25.01.16 10:25, Dan Williams (d...@redhat.com) wrote: > While it would be nice to attach metadata to addresses to indicate that > an address came from DHCP or RA or PPP or LL or whatever, the kernel > has no facility for that so users are stuck asking management daemons > like networkd or

Re: [systemd-devel] dhcp address change callback?

2016-01-25 Thread Dan Williams
On Mon, 2016-01-25 at 14:27 +0100, Lennart Poettering wrote: > On Mon, 25.01.16 05:08, J Decker (d3c...@gmail.com) wrote: > > > On Mon, Jan 25, 2016 at 4:43 AM, Lennart Poettering > > wrote: > > > On Sat, 23.01.16 14:22, Johannes Ernst (johannes.er...@gmail.com) > > > wrote: > > > > > > > Is the

Re: [systemd-devel] euid 0 not honored authenticating control socket?

2016-01-25 Thread Lennart Poettering
On Thu, 21.01.16 18:12, Charles Duffy (char...@dyfis.net) wrote: > Howdy -- > > I have a setuid-root executable from which I'm trying to start or stop a > service. However, when invoking systemctl from this executable -- for which > geteuid() returns 0 -- the control socket is rejected when the r

Re: [systemd-devel] Seeking advice for configuring SystemCallFilter=

2016-01-25 Thread Lennart Poettering
On Fri, 22.01.16 21:17, David Timothy Strauss (da...@davidstrauss.net) wrote: > Rebooting an old thread now that we're finally testing this out. > > > "strace" should do the job. It should give you a pretty good idea of all > syscalls a process uses. That's what I used when testing SyscallFilters

Re: [systemd-devel] Query regards to undefine property

2016-01-25 Thread Lennart Poettering
On Mon, 25.01.16 07:41, Mohit Agrawal (moagr...@redhat.com) wrote: > Hi, > > I have one query specific to undefined property for specific cgroup > resources through systemctl. > Currently systemctl provide a option to set property for specific to cgroup > resources as like below > > sy

Re: [systemd-devel] dhcp address change callback?

2016-01-25 Thread Lennart Poettering
On Mon, 25.01.16 05:08, J Decker (d3c...@gmail.com) wrote: > On Mon, Jan 25, 2016 at 4:43 AM, Lennart Poettering > wrote: > > On Sat, 23.01.16 14:22, Johannes Ernst (johannes.er...@gmail.com) wrote: > > > >> Is there a way to receive a callback when a dhcp client-side IP address > >> changes? >

Re: [systemd-devel] dhcp address change callback?

2016-01-25 Thread J Decker
On Mon, Jan 25, 2016 at 4:43 AM, Lennart Poettering wrote: > On Sat, 23.01.16 14:22, Johannes Ernst (johannes.er...@gmail.com) wrote: > >> Is there a way to receive a callback when a dhcp client-side IP address >> changes? >> >> Use case: dynamic DNS update. > > On Linux changes regarding IP conf

Re: [systemd-devel] dhcp address change callback?

2016-01-25 Thread Lennart Poettering
On Sat, 23.01.16 14:22, Johannes Ernst (johannes.er...@gmail.com) wrote: > Is there a way to receive a callback when a dhcp client-side IP address > changes? > > Use case: dynamic DNS update. On Linux changes regarding IP configuration are reported via rtnl (aka routing netlink). This works reg

Re: [systemd-devel] [libudev] Obtaining /dev/input/eventx

2016-01-25 Thread Lennart Poettering
On Sun, 24.01.16 15:23, Hans-Jacob Enemark (hjenem...@gmail.com) wrote: > Is it possible to obtain the /dev/input/eventx path from a given USB > VID:PID combo or similar info, using libudev? > If so, how ? Usually one would work the other way round. Scan for /dev/input devices, and then filter ou

[systemd-devel] Query regards to undefine property

2016-01-25 Thread Mohit Agrawal
Hi, I have one query specific to undefined property for specific cgroup resources through systemctl. Currently systemctl provide a option to set property for specific to cgroup resources as like below systemctl set-property sshd.service CPUShares=500 but it does not provide any opti

[systemd-devel] messing with .mount/.automount units

2016-01-25 Thread arnaud gaboury
I run once a week a simple backup with rsync. For that purpose, I wrote a service file (rsync) and a timer unit. They both work with no issues. /etc/systemd/system/backup-external.service [Unit] Description=Backup system to external drive Requi