Re: [systemd-devel] Writing a udev rule for U2F security tokens?

2014-10-28 Thread Greg KH
On Mon, Oct 27, 2014 at 04:37:14PM -0700, Andy Lutomirski wrote: On Mon, Oct 27, 2014 at 4:32 PM, Greg KH gre...@linuxfoundation.org wrote: On Mon, Oct 27, 2014 at 04:12:30PM -0700, Andy Lutomirski wrote: Hi- I'd like to write a generic udev rule for U2F security tokens and to possibly

[systemd-devel] [PATCH v5] udev hwdb: Support shipping pre-compiled database in system images

2014-10-28 Thread Martin Pitt
Hello Lennart, Lennart Poettering [2014-10-27 16:09 +0100]: +static const char hwdb_bin_paths[] = +/etc/udev/hwdb.bin\0 +UDEVLIBEXECDIR /hwdb.bin\0; + + +static int open_hwdb_bin(const char **path, FILE** f) { +const char* p; + +NULSTR_FOREACH(p,

Re: [systemd-devel] [PATCH 3/4] manager: stop start timeout when sysinit.target is reached

2014-10-28 Thread Lennart Poettering
On Tue, 28.10.14 03:52, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: On Tue, Oct 28, 2014 at 02:32:37AM +0100, Lennart Poettering wrote: On Mon, 27.10.14 23:07, Lennart Poettering (lenn...@poettering.net) wrote: On Mon, 27.10.14 20:03, Zbigniew Jędrzejewski-Szmek

[systemd-devel] systemd presentation slides?

2014-10-28 Thread Mihamina Rakotomandimby
Hi all, I've been assigned the task to introduce systemd to my sysadmin collegues, as it will be adopted by CentOS and Debian nextcoming releases. Debian+CentOS is 90% of our machines, the remaining 10% is negligeable. Would you have some bookmarks of some slide presenting systemd? Espacially

Re: [systemd-devel] [PATCH 3/3] run: introduce timer support option

2014-10-28 Thread Lennart Poettering
On Tue, 28.10.14 12:09, WaLyong Cho (walyong@samsung.com) wrote: The AccuracySec= and WakeSystem= stuff I think we don't need to cover with a command line argument of its own, we can cover that with --property=. Rework is almost done. Now I'm testing. But the AccuracySec= and

Re: [systemd-devel] [PATCH v5] udev hwdb: Support shipping pre-compiled database in system images

2014-10-28 Thread Lennart Poettering
On Tue, 28.10.14 09:53, Martin Pitt (martin.p...@ubuntu.com) wrote: Hello Lennart, Lennart Poettering [2014-10-27 16:09 +0100]: +static const char hwdb_bin_paths[] = +/etc/udev/hwdb.bin\0 +UDEVLIBEXECDIR /hwdb.bin\0; + + +static int open_hwdb_bin(const char **path,

Re: [systemd-devel] systemd presentation slides?

2014-10-28 Thread Tom Gundersen
Hi Mihamina, On Tue, Oct 28, 2014 at 11:06 AM, Mihamina Rakotomandimby mihamina.rakotomandi...@rktmb.org wrote: Would you have some bookmarks of some slide presenting systemd? We try to gather all such resources here: http://www.freedesktop.org/wiki/Software/systemd/. HTH, Tom

[systemd-devel] [PATCH v6] udev hwdb: Support shipping pre-compiled database in system images

2014-10-28 Thread Martin Pitt
Hello Lennart, Lennart Poettering [2014-10-28 11:31 +0100]: I'd prefer if you'd move the log message for the error into open_hwdb_bin() then, so that it is not the caller, but the callee which prints the error message in this case. That would then mean to move most of udev_hwdb_new() into

Re: [systemd-devel] [PATCH] swap: rework discard

2014-10-28 Thread Lennart Poettering
On Thu, 23.10.14 16:39, Lennart Poettering (lenn...@poettering.net) wrote: Heya, Hmm, I think the generator should already treat the option fields the same way as I want it to work in the long run, i.e. just read it from fstab and write it 1:1 into the unit's Options= string. I am hacking up

Re: [systemd-devel] [PATCH 3/3] run: introduce timer support option

2014-10-28 Thread WaLyong Cho
On 10/28/2014 07:22 PM, Lennart Poettering wrote: On Tue, 28.10.14 12:09, WaLyong Cho (walyong@samsung.com) wrote: The AccuracySec= and WakeSystem= stuff I think we don't need to cover with a command line argument of its own, we can cover that with --property=. Rework is almost done.

[systemd-devel] Need suggsetion on weird characters on RHEL7 !

2014-10-28 Thread Manish Saxena
Hello, I need suggestion on a case 01270671, where customer is getting weird characters as below : Can some one suggest what is wrong? Weird characters when displaying man pages on RHEL 7.0 e.g. man firewall-cmd ample 2 Enable port 443/tcp immediately and

Re: [systemd-devel] [PATCH v2] Bootchart: allow parse LABEL, UUID, PARTUUID for svg info

2014-10-28 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Oct 28, 2014 at 07:56:32AM +0300, Timofey Titovets wrote: Good time of day, list. I try to fix Fixme in svg.c: /* FIXME: this works only in the simple case */ By default function try to get only root=/dev/* I also attach patch. Thanks. v2: Rewrited with use

Re: [systemd-devel] Need suggsetion on weird characters on RHEL7 !

2014-10-28 Thread Morgan Weetman
From memory that's pretty standard with vt100 emulation, I always noticed it in man pages .. have they tried setting TERM to xterm? - Original Message - From: Manish Saxena msax...@redhat.com To: systemd-devel@lists.freedesktop.org, Red Hat Technical Discussion List

Re: [systemd-devel] systemd presentation slides?

2014-10-28 Thread Simon McVittie
On 28/10/14 10:06, Mihamina Rakotomandimby wrote: what to do if there is the need to package a daemon and there is only a SysV init script available LSB init scripts should continue to work fine. Make sure they have LSB pseudo-headers (Required-Start etc.) for their dependencies. if running

Re: [systemd-devel] Need suggsetion on weird characters on RHEL7 !

2014-10-28 Thread Mantas Mikulėnas
On Tue, Oct 28, 2014 at 2:28 PM, Manish Saxena msax...@redhat.com wrote: Hello, I need suggestion on a case 01270671, where customer is getting weird characters as below : Can some one suggest what is wrong? Weird characters when displaying man pages on RHEL 7.0

Re: [systemd-devel] Need suggsetion on weird characters on RHEL7 !

2014-10-28 Thread Manish Saxena
Thanks everyone, actually customer was using some third party software to access the terminal which they confirmed now. and they are not facing any issue while using console or ssh. Thanks for help and sorry for noise. Regards, Manish - Original Message - From: Morgan Weetman

Re: [systemd-devel] [PATCH 3/3] run: introduce timer support option

2014-10-28 Thread Lennart Poettering
On Tue, 28.10.14 21:17, WaLyong Cho (walyong@samsung.com) wrote: On 10/28/2014 07:22 PM, Lennart Poettering wrote: On Tue, 28.10.14 12:09, WaLyong Cho (walyong@samsung.com) wrote: The AccuracySec= and WakeSystem= stuff I think we don't need to cover with a command line argument

Re: [systemd-devel] [PATCH v6] udev hwdb: Support shipping pre-compiled database in system images

2014-10-28 Thread Lennart Poettering
On Tue, 28.10.14 12:18, Martin Pitt (martin.p...@ubuntu.com) wrote: Hello Lennart, Checked with Kay, he's fine with this. Please commit! Thanks, Lennart -- Lennart Poettering, Red Hat ___ systemd-devel mailing list

Re: [systemd-devel] [PATCH] mac: add mac_ prefix to distinguish origin security apis

2014-10-28 Thread Lennart Poettering
On Fri, 24.10.14 21:15, WaLyong Cho (walyong@samsung.com) wrote: Thanks! Applied! --- src/core/dbus-job.c | 2 +- src/core/dbus-manager.c | 68 +++ src/core/dbus-snapshot.c | 2 +- src/core/dbus-unit.c | 8 +++---

Re: [systemd-devel] [PATCH 3/4] manager: stop start timeout when sysinit.target is reached

2014-10-28 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Oct 28, 2014 at 10:50:05AM +0100, Lennart Poettering wrote: On Tue, 28.10.14 03:52, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: On Tue, Oct 28, 2014 at 02:32:37AM +0100, Lennart Poettering wrote: On Mon, 27.10.14 23:07, Lennart Poettering (lenn...@poettering.net) wrote:

Re: [systemd-devel] [PATCH] manager: do not print anything while passwords are being queried

2014-10-28 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Oct 27, 2014 at 06:37:21PM +0100, Lennart Poettering wrote: On Sun, 26.10.14 05:37, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: https://bugs.freedesktop.org/show_bug.cgi?id=73942 So in really old systemd versions I had a concept in place of never printing to the console

Re: [systemd-devel] [PATCH] manager: do not print anything while passwords are being queried

2014-10-28 Thread Lennart Poettering
On Tue, 28.10.14 15:00, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: On Mon, Oct 27, 2014 at 06:37:21PM +0100, Lennart Poettering wrote: On Sun, 26.10.14 05:37, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: https://bugs.freedesktop.org/show_bug.cgi?id=73942 So

[systemd-devel] [PATCHv2] core: send sigabrt on watchdog timeout to get the stacktrace

2014-10-28 Thread Umut Tezduyar Lindskog
if sigabrt doesn't do the job, follow regular shutdown routine, sigterm sigkill. Umut: - I have done basic testing with suppressing sigabrt, suppressing both sigabrt sigterm on client application. - Documentation needs to be updated. I wasn't sure if we should mention it in KillMode,

Re: [systemd-devel] [PATCH] swap: rework discard

2014-10-28 Thread Lennart Poettering
On Tue, 28.10.14 13:14, Lennart Poettering (lenn...@poettering.net) wrote: On Thu, 23.10.14 16:39, Lennart Poettering (lenn...@poettering.net) wrote: Heya, Hmm, I think the generator should already treat the option fields the same way as I want it to work in the long run, i.e. just read

Re: [systemd-devel] [PATCHv2] core: send sigabrt on watchdog timeout to get the stacktrace

2014-10-28 Thread Lennart Poettering
On Tue, 28.10.14 15:34, Umut Tezduyar Lindskog (umut.tezdu...@axis.com) wrote: if sigabrt doesn't do the job, follow regular shutdown routine, sigterm sigkill. Umut: - I have done basic testing with suppressing sigabrt, suppressing both sigabrt sigterm on client application. -

[systemd-devel] [PATCH] NEWS: fix typos

2014-10-28 Thread Ronny Chevalier
--- NEWS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index c5f0db2..f4afcf6 100644 --- a/NEWS +++ b/NEWS @@ -70,7 +70,7 @@ CHANGES WITH 217: * Udev rules can now remove tags on devices with TAG-=foobar. * systemd's readahead

Re: [systemd-devel] [PATCH] NEWS: fix typos

2014-10-28 Thread Tom Gundersen
Applied. Thanks! Tom On Tue, Oct 28, 2014 at 4:04 PM, Ronny Chevalier chevalier.ro...@gmail.com wrote: --- NEWS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index c5f0db2..f4afcf6 100644 --- a/NEWS +++ b/NEWS @@ -70,7 +70,7 @@ CHANGES WITH 217:

Re: [systemd-devel] I wonder… why systemd provokes this amount of polarity and resistance

2014-10-28 Thread Dale R. Worley
From: Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl That mostly applies to people who actually don't use systemd and are commenting from the peanut gallery. Actual *users* when they are unhappy are unhappy about bugs. That is not entirely true. I'm a user (because systemd is in Fedora 19),

Re: [systemd-devel] I wonder… why systemd provokes this amount of polarity and resistance

2014-10-28 Thread Daniele Nicolodi
On 28/10/14 16:28, Dale R. Worley wrote: From: Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl That mostly applies to people who actually don't use systemd and are commenting from the peanut gallery. Actual *users* when they are unhappy are unhappy about bugs. That is not entirely true. I'm

[systemd-devel] [PATCHv3] core: send sigabrt on watchdog timeout to get the stacktrace

2014-10-28 Thread Umut Tezduyar Lindskog
if sigabrt doesn't do the job, follow regular shutdown routine, sigterm sigkill. --- TODO| 2 -- man/systemd.service.xml | 5 +++-- src/core/busname.c | 2 +- src/core/mount.c| 3 ++- src/core/scope.c| 2 +- src/core/service.c | 37

Re: [systemd-devel] I wonder… why systemd provokes this amount of polarity and resistance

2014-10-28 Thread Lennart Poettering
On Tue, 28.10.14 11:28, Dale R. Worley (wor...@alum.mit.edu) wrote: From: Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl That mostly applies to people who actually don't use systemd and are commenting from the peanut gallery. Actual *users* when they are unhappy are unhappy about bugs.

Re: [systemd-devel] I wonder… why systemd provokes this amount of polarity and resistance

2014-10-28 Thread Jan Alexander Steffens
On Oct 28, 2014 5:05 PM, Lennart Poettering lenn...@poettering.net wrote: On Tue, 28.10.14 11:28, Dale R. Worley (wor...@alum.mit.edu) wrote: That is not entirely true. I'm a user (because systemd is in Fedora 19), and I've complained that if I mark an /etc/fstab entry as nofail, some part

Re: [systemd-devel] How soon after login can I rely on systemd --user having reached sockets.target?

2014-10-28 Thread Colin Guthrie
Lennart Poettering wrote on 27/10/14 18:11: On Thu, 23.10.14 17:26, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: order it after basic.target (which things are by default anyway)... My proposal now, (which is the same Damien's as I understood him): 1. pam_systemd should sync on

[systemd-devel] sysusers: Unconditional chown on /etc/{passwd, group, shadow, gshadow}? Is it sane?

2014-10-28 Thread Colin Guthrie
Hi, It seems we have different permissions for /etc/{g}shadow than fedora. We don't package it as ,root,root but rather 0440,root,shadow. We can then run some tools that need direct access as setgid rather than full blown setuid. I'm not totally convinced of the security benefits here (and I

Re: [systemd-devel] Writing a udev rule for U2F security tokens?

2014-10-28 Thread Andy Lutomirski
On Tue, Oct 28, 2014 at 1:40 AM, Greg KH gre...@linuxfoundation.org wrote: On Mon, Oct 27, 2014 at 04:37:14PM -0700, Andy Lutomirski wrote: On Mon, Oct 27, 2014 at 4:32 PM, Greg KH gre...@linuxfoundation.org wrote: On Mon, Oct 27, 2014 at 04:12:30PM -0700, Andy Lutomirski wrote: Hi- I'd

Re: [systemd-devel] I wonder… why systemd provokes this amount of polarity and resistance

2014-10-28 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Oct 28, 2014 at 05:16:38PM +0100, Jan Alexander Steffens wrote: On Oct 28, 2014 5:05 PM, Lennart Poettering lenn...@poettering.net wrote: On Tue, 28.10.14 11:28, Dale R. Worley (wor...@alum.mit.edu) wrote: That is not entirely true. I'm a user (because systemd is in Fedora 19),

Re: [systemd-devel] sysusers: Unconditional chown on /etc/{passwd, group, shadow, gshadow}? Is it sane?

2014-10-28 Thread Simon McVittie
On 28/10/14 16:34, Colin Guthrie wrote: It seems we have different permissions for /etc/{g}shadow than fedora. We don't package it as ,root,root but rather 0440,root,shadow. Who is we? Mageia? FYI, Debian uses 0640 root:shadow for the same files. We can then run some tools that need

Re: [systemd-devel] [PATCHv3] core: send sigabrt on watchdog timeout to get the stacktrace

2014-10-28 Thread Lennart Poettering
On Tue, 28.10.14 16:35, Umut Tezduyar Lindskog (umut.tezdu...@axis.com) wrote: Applied! Thanks! if sigabrt doesn't do the job, follow regular shutdown routine, sigterm sigkill. --- TODO| 2 -- man/systemd.service.xml | 5 +++-- src/core/busname.c | 2 +-

[systemd-devel] starting Oracle with systemd

2014-10-28 Thread Fisher, Charles J. (Top Echelon)
Is this the best way to start Oracle? [root@localhost system]# cat oracle-foo.service [Unit] Description=oracle db - foo After=syslog.target [Service] Environment=ORACLE_SID=foo ORACLE_HOME=/home/oracle/Ora12c/db ExecStart=/bin/ksh -c 'print connect / as sysdba \n startup \n quit |

Re: [systemd-devel] starting Oracle with systemd

2014-10-28 Thread Jóhann B. Guðmundsson
On 10/28/2014 07:08 PM, Fisher, Charles J. (Top Echelon) wrote: Is this the best way to start Oracle? No and unfortunately for you Oracle is not open source and has a bad track record taking code submissions which is probably why nobody has written a proper systemd unit for it and pushed

Re: [systemd-devel] I wonder… why systemd provokes this amount of polarity and resistance

2014-10-28 Thread Pacho Ramos
El mar, 28-10-2014 a las 17:05 +0100, Lennart Poettering escribió: [...] http://lists.freedesktop.org/archives/systemd-devel/2014-October/024325.html Looks interesting. Have you think in having some kind of wiki or page listing this kind of tricks to solve things like that. That way we prevent

Re: [systemd-devel] starting Oracle with systemd

2014-10-28 Thread Fisher, Charles J. (Top Echelon)
Interestingly, placing the Oracle database listener in its own service propagates this cgroup to all client connections into all databases. Stopping the listener service kills these connections for all instances handled by the listener, which is not the normal/expected behavior.

[systemd-devel] [PATCH] udev: Add hidraw_id and a rule file to invoke it

2014-10-28 Thread Andy Lutomirski
So far, hidraw_id detects U2F tokens and sets: ID_U2F_TOKEN=1 ID_SECURITY_TOKEN=1 This causes the uaccess rules to apply to U2F devices. --- I've never written any udev code before. Feedback welcome. If you think this doesn't belong in udev, I can try to find it another home. .gitignore

[systemd-devel] Luks + lvm in initrd

2014-10-28 Thread Luca Bruno
Hi, I'm going on with my work to have systemd in initrd on NixOS (using dracut is a little complicated at the moment). Everything works fine, I've ported luks and lvm and both work separately. However I'm hitting a problem when using luks and lvm on top of luks. SETUP Software: systemd 212, lvm

[systemd-devel] [PATCH] kernel-install/90-loaderentry.install: fix cmdline parsing

2014-10-28 Thread Michael Chapman
A recent commit (2f3a215) changed the parsing of /proc/cmdline to use a shell array. Unfortunately, this introduced a bug: read -ar line populates the shell variable $r, not $line. This breaks installation of new loader entries: # kernel-install add 3.17.1-304.fc21.x86_64 \

Re: [systemd-devel] starting Oracle with systemd

2014-10-28 Thread Andrei Borzenkov
В Tue, 28 Oct 2014 15:08:45 -0400 Fisher, Charles J. (Top Echelon) charles.fis...@alcoa.com пишет: Is this the best way to start Oracle? [root@localhost system]# cat oracle-foo.service [Unit] Description=oracle db - foo After=syslog.target [Service] Environment=ORACLE_SID=foo