Re: [systemd-devel] using nsenter and running daemon within a namespace

2018-10-27 Thread Mantas Mikulėnas
> where squid (for example) is the daemon itself; but nsenter allows me > to run it in that namespace? > > Just confused about whether that's technically one command or not... > It is. > can I still use Type=Simple? Usually `nsenter` directly

Re: [systemd-devel] cryptsetup open invoked from udev rule fails

2018-11-04 Thread Mantas Mikulėnas
r all rules have been processed. Or in other words, anything you do via udev rules happens *before* all other daemons consider the device "ready". (After all, udev rules are often what *make* the device ready for use.) -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Data flow is slow

2018-11-08 Thread Mantas Mikulėnas
h of them manually , they are working as expected. > > If I start as system service, it is taking around 2 minutes for data to > reach from app1 to app2. > > What can be the possible reasons? > How did you measure this? Can you provide a

Re: [systemd-devel] Data flow is slow

2018-11-09 Thread Mantas Mikulėnas
. > Unless you start them in a specific manner that places them inside the session. (If I remember earlier threads correctly, and I'm assuming deepan is still working on the same system as before, then this is some sort of an embedded system where every

Re: [systemd-devel] systemd blocks update kernel partition table

2018-11-22 Thread Mantas Mikulėnas
`grep mmcblk1 /proc/*/mountinfo` should do the job as well. -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] systemd blocks update kernel partition table

2018-11-22 Thread Mantas Mikulėnas
`systemd-mount` tool if your version comes with it. That will create a transient .mount unit in systemd via IPC, so it will be unaffected by namespacing. Otherwise, no need to bother with MountFlags=, just remove the existing PrivateMounts=yes option which isolates udev to begin with. -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] starting qt application after DRM initialized

2018-12-07 Thread Mantas Mikulėnas
rd and it's always called "card0": [Unit] Requires=dev-dri-card0.device After=dev-dri-card0.device (Note: This also needs udev/rules.d/99-systemd.rules to be extended with an apropriate TAG+="systemd".) -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Systemd and kernel keyring

2018-12-10 Thread Mantas Mikulėnas
;possessor" has full permissions, but the "uid/gid/other" have none. (e.g. keyctl setperm 0x3f00). -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] EXT :Re: Systemd dependencies

2018-12-11 Thread Mantas Mikulėnas
at's being called in ExecStart. -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Secondary mounts

2018-12-13 Thread Mantas Mikulėnas
doesn't > support that operation" when I attempt a "ln -s". > Try adding the additional mount units to the base .mount's Wants= and Before=. -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedeskt

Re: [systemd-devel] Regex parsable output of systemctl

2018-12-18 Thread Mantas Mikulėnas
table would be nice (at least for DBus-incapable shell scripts). You could then feed that to `jq`. (I wonder if systemctl could use libsmartcols from util-linux...) -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.or

[systemd-devel] [PATCH] core: fix event source annotations

2015-04-29 Thread Mantas Mikulėnas
These looked like a mass-replace gone slightly wrong – two statements with no { }'s, and no error checking. --- src/core/busname.c | 4 +++- src/core/manager.c | 5 - src/core/socket.c | 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/core/busname.c b/src/core/busnam

[systemd-devel] [PATCH] terminal: fix prototypes after removal of |bus|

2015-04-29 Thread Mantas Mikulėnas
Following commits fe506d569d82467f3186 and 190700621f95160d364f. --- src/libsystemd-terminal/grdev-drm.c | 9 +++-- src/libsystemd-terminal/idev-evdev.c| 3 +-- src/libsystemd-terminal/idev-keyboard.c | 8 +++- src/libsystemd-terminal/idev.c | 6 ++ src/libsystemd-

Re: [systemd-devel] Sending a SIGABRT to PID1

2015-05-03 Thread Mantas Mikulėnas
h*. The whole point of SIGABRT is that it kills the program immediately, when the program calls abort() after detecting some serious inconsistency. It is also not a bug that the kernel panics when init exits. Several things depend on the existence of PID 1. -- Mantas Mikulėnas __

Re: [systemd-devel] Sending a SIGABRT to PID1

2015-05-03 Thread Mantas Mikulėnas
o systemd catches these signals but enters "crash mode" immediately. -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Sending a SIGABRT to PID1

2015-05-05 Thread Mantas Mikulėnas
On Mon, May 4, 2015 at 3:40 AM, Lennart Poettering wrote: > On Sun, 03.05.15 19:10, Mantas Mikulėnas (graw...@gmail.com) wrote: > > > On Sun, May 3, 2015 at 6:54 PM, Víctor Fernández > wrote: > > > > > Ok, Thanks for your reply. > > > > > > But, j

Re: [systemd-devel] Add User to group "video"

2015-05-07 Thread Mantas Mikulėnas
on's answer for a much better solution (using udev ACLs). -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] [PATCH] systemctl: introduce -e and -d for start and stop

2015-05-13 Thread Mantas Mikulėnas
-d only with stop it could as > well be a single option that works for both? > Would be less of a problem if subcommands could have their own options separate from global ones... -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel

Re: [systemd-devel] Will *.network replace resolv.conf? What about "Options single-request"?

2015-05-15 Thread Mantas Mikulėnas
orate firewalls and embedded devices (i.e. home gateways) which choke on EDNS, crash upon seeing DNSSEC, truncate all packets to 512 bytes (manufactured in 2015!), and even outright lie – by making up their own (incorrect) responses instead of forwarding the query. (If it's not encrypted,

Re: [systemd-devel] 60-persistent-storage.rules: add NVMe disks and partitions (again)

2015-05-16 Thread Mantas Mikulėnas
On May 16, 2015 11:18, "Per Bergqvist" wrote: > > Lennart, > > Thank you for all the comments. > > I have changed everything except the 'No space between function name and opening “(“‘. > Cannot find anything about that in CODING_STYLE or evidence in other sources. "Most every call in the entire

Re: [systemd-devel] Will *.network replace resolv.conf? What about "Options single-request"?

2015-05-16 Thread Mantas Mikulėnas
truncates > DNS packets, then switch over to establish a TCP connection for DNS and > start using that one. Meaning in case the result is too large to fit in > over UDP, make the same request over TCP and deliver that result to the > clients. At that point, you can also

[systemd-devel] [PATCH] buildsys: actually install 70-pointingstick.hwdb

2015-05-18 Thread Mantas Mikulėnas
--- Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.am b/Makefile.am index 4639b2f..0b5b488 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3913,6 +3913,7 @@ dist_udevhwdb_DATA = \ hwdb/60-evdev.hwdb \ hwdb/60-keyboard.hwdb \ hwdb/70-mouse.hwdb \ +

[systemd-devel] [PATCH v2] buildsys: actually install 70-pointingstick.hwdb

2015-05-18 Thread Mantas Mikulėnas
--- *sigh* Tabs. Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.am b/Makefile.am index 4639b2f..5bcbfff 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3913,6 +3913,7 @@ dist_udevhwdb_DATA = \ hwdb/60-evdev.hwdb \ hwdb/60-keyboard.hwdb \ hwdb/70-mo

Re: [systemd-devel] How to wait for specific interface/IP?

2015-05-23 Thread Mantas Mikulėnas
NetworkManager has > configured the bridge and failing because it cannot bind to the bridge's > IP address. > dnsmasq has the "bind-dynamic" option for such situations. -- Mantas Mikulėnas ___ systemd-devel mailing list s

[systemd-devel] udev now crashes in daemon mode

2015-05-24 Thread Mantas Mikulėnas
child PID. (I'm using Arch Linux with the traditional mkinitcpio-based initramfs, which starts udev using "systemd-udevd --daemon --resolve-names=never".) -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedes

Re: [systemd-devel] udev now crashes in daemon mode

2015-05-26 Thread Mantas Mikulėnas
systemd-udevd --daemon --resolve-names=never".) > > Thanks for the report. This should be fixed now in git, please let me > know if that is not the case. > > Cheers, > > Tom > -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] how to call dbus ListUnits for user units?

2015-05-26 Thread Mantas Mikulėnas
replace the session bus yet, but you *will* be able to connect to it and reach systemd, at address "kernel:path=/dev/kdbus/$UID-user/bus;unix:path=$XDG_RUNTIME_DIR/bus". -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] how to call dbus ListUnits for user units?

2015-05-26 Thread Mantas Mikulėnas
On Tue, May 26, 2015 at 10:32 PM, Chris Morgan wrote: > On Tue, May 26, 2015 at 3:22 PM, Mantas Mikulėnas > wrote: > > On Tue, May 26, 2015 at 9:33 PM, Chris Morgan > wrote: > >> > >> But I can't seem to figure out how to do the same for user u

Re: [systemd-devel] how to call dbus ListUnits for user units?

2015-05-26 Thread Mantas Mikulėnas
Well, the systemd side is already there – if you have kdbus, it'll create a user bus there, and if you have traditional dbus.service + dbus.socket, systemd will also happily connect to that. On Tue, May 26, 2015, 23:46 Chris Morgan wrote: > On Tue, May 26, 2015 at 4:05 PM, Mantas M

Re: [systemd-devel] systemctl as non-root

2015-05-29 Thread Mantas Mikulėnas
vileged clients. Normally it's the duty of dbus-daemon to enforce > more complex policy on dbus1 systems. If you take dbus-daemon out of > the equation however, then this policy component will be missing, and > hence systemd refuses to talk to any unprivileged clients. > Hmm, in a kdbu

Re: [systemd-devel] systemctl disable not working as expected

2015-05-29 Thread Mantas Mikulėnas
s he can > enable/disable PA as per need. How can I disable PA in such a scenario? > You could set "autospawn = no" in pulse-client.conf(5). -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http

Re: [systemd-devel] How many times is the root mounted in boot up?

2015-06-01 Thread Mantas Mikulėnas
unted, then it's mounted. > And systemd-remount-fs.service will remount the root again, thus apply > options in fstab? > Yes, such as rw. > BTW, where are the units generated by generators? > /run/systemd/generator*/ -- Mantas Mikulėnas ___

Re: [systemd-devel] nss-hostname; unit "xl2tpd.service"

2015-06-02 Thread Mantas Mikulėnas
o tell you that something could *break* it. > 4. *DAEMON_OPTS = " "* ? Probably, the value of this "DAEMON_OPTS" need > to write in file: /*etc/default/xl2tpd *? If is so, I don't know, what > must to write. My provider also can't help me. > The variable just contains the options that will be passed to /usr/sbin/xl2tpd, for example: DAEMON_OPTS="-c /etc/xl2tpd/xl2tpd.conf" But usually xl2tpd doesn't need any special options, I think. -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Use a specific device ?

2015-06-05 Thread Mantas Mikulėnas
implemented. > >> > >> Jean-Christian > > > > > > Face your broadband modem, live your dreams? > > > > Kay, when this would happen - Predictable Broadband Modem Interface > Names? > > > > Wouldn't it be nicer to have symlinks like in /dev/disk ? > /dev/tty/by-path/ 60-serial.rules:16:ENV{ID_PATH}=="?*", ENV{.ID_PORT}=="", SYMLINK+="serial/by-path/$env{ID_PATH}" 60-serial.rules:17:ENV{ID_PATH}=="?*", ENV{.ID_PORT}=="?*", SYMLINK+="serial/by-path/$env{ID_PATH}-port$env{.ID_PORT}" -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] systemd-networkd: IPForward with ipv6

2015-06-08 Thread Mantas Mikulėnas
ifferent rules, and it is frankly confusing as duck. But they aren't "broken" nor "ignored", no. -- Mantas Mikulėnas On Jun 8, 2015 23:00, "Lennart Poettering" wrote: > On Wed, 03.06.15 19:18, Sébastien Luttringer (se...@seblu.net) wrote: > > > H

Re: [systemd-devel] Why we need to read/save random seed?

2015-06-14 Thread Mantas Mikulėnas
ot read from it. Early during boot, the system has very little entropy available from other sources, so it is common to save some random data from last boot and provide it to the PRNG later. -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel

Re: [systemd-devel] Bind key combination to isolate emergency mode

2015-06-20 Thread Mantas Mikulėnas
q+F will run the OOM killer in case of heavy swapping, Alt+SysRq+E/I will sigterm/sigkill all programs (systemd will restart gettys afterwards), and Alt+SysRq+N will renice high-priority processes. You need to enable this via sysctl.conf though. -- Mantas Mikulėnas ___

Re: [systemd-devel] SysVInit service migration to systemd

2015-06-26 Thread Mantas Mikulėnas
rom the journal. The journal, however, also receives messages sent using the traditional syslog API or written to the kernel log – in addition to its native sd_journal_send(3) <http://www.freedesktop.org/software/systemd/man/sd_journal_send.html> – so that already cover

Re: [systemd-devel] SysVInit service migration to systemd

2015-06-29 Thread Mantas Mikulėnas
On Jun 29, 2015 16:58, "Lesley Kimmel" wrote: > > Jonathan; > > Thanks for the background and information. Since you clearly seem to have a grasp of systemd please humour me with a few more questions (some of them slightly ignorant): > > a) Why are PID bad? > b) Why are lock files bad? > c) If a/b

Re: [systemd-devel] Errors/warnings when cloning systemd

2015-06-29 Thread Mantas Mikulėnas
d2cfd1395a97fa or similar scripts. Also note that the primary repository is at https://github.com/systemd/systemd these days. -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Monitoring services start event from kdbus with sd-bus API

2015-06-30 Thread Mantas Mikulėnas
First, are you actually switching your bus connection to monitor mode? In kdbus (and probably even in future DBus) there is a distinct monitor mode which must be enabled to capture other peers' bus traffic. Adding a match is not enough for that. Second, your approach won't work anyway. There *won'

Re: [systemd-devel] Delaying device service creation

2015-06-30 Thread Mantas Mikulėnas
Options: - Configure it as part of ExecStart if possible. - Configure it using a second .service unit (oneshot), and depend on that one. - Do something with udev to mark unconfigured devices with SYSTEMD_READY=0? Not sure how. But if you can do this, it'll directly affect the "readiness" of the

Re: [systemd-devel] How to keep certain services or mounts active during shutdown?

2015-07-02 Thread Mantas Mikulėnas
quot;shutdown initramfs" feature [1] would help here. [1]: http://www.freedesktop.org/wiki/Software/systemd/InitrdInterface/ [2]: http://www.freedesktop.org/wiki/Software/systemd/RootStorageDaemons/ -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] HEADS-UP: splitting python-systemd out

2015-07-06 Thread Mantas Mikulėnas
python-systemd/releases ? > > Btw, does anyone know if those release tarballs are generated by > github on the fly and might have different md5sums? > They should be identical regardless – git-archive tries to generate reproducible archives (assuming same pa

Re: [systemd-devel] Launching a unit when a network interface is configured?

2015-07-12 Thread Mantas Mikulėnas
*systemd-networkd-wait-online.service*, which your unit can depend on. Note that by default it waits for *all* interfaces to be configured; if you only need a specific one, you can create your own (instanced/templated) version that would use "--interf

Re: [systemd-devel] Odd /proc/$pid/fd symlinks in nspawn container

2015-07-17 Thread Mantas Mikulėnas
Note that devpts also supports multiple instances – the host /dev/pts is not the same as the guest /dev/pts'en. So my guess is that your stdio is attached to a pty from the *host*. Not really sure how that breaks job control though. Also, the fd symlinks are slightly magical; they can be followed

Re: [systemd-devel] Confusing journal information - journal size

2015-07-17 Thread Mantas Mikulėnas
? > "Runtime" here means /run, as opposed to persistent in /var. They have separately configurable limits, since /run is in RAM and /var is usually on disk. (Though, I'm not entirely sure what purpose the runtime journal even serves, when /var is available.) -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Packaging systemd user-instance service files

2015-07-17 Thread Mantas Mikulėnas
systemd/user, and that's it. It'll be available to all users. If you want to forcefully enable the service for all users, then also symlink it into /usr/lib/systemd/user/default.target.wants/, which is almost exactly what `systemctl enable` does (except system-wide). That'll make

Re: [systemd-devel] [PATCH] sd-bus: use isempty() consistently

2015-07-20 Thread Mantas Mikulėnas
gt; days. And you can leave off the Signed-off-by line, we don't use that in > the systemd project. > Does including it hurt though? -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesk

Re: [systemd-devel] Creation of additional links for selected devices

2015-07-26 Thread Mantas Mikulėnas
more experiences > around the fine-tuning of such settings and their reuse > for the generation of symbolic links by udev rules? > ...?? -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Getting EOF on FD#1 stdout (a service using socat)

2015-07-27 Thread Mantas Mikulėnas
tes: > > N starting data transfer loop with FDs [5,5] and [1,1] > N socket 2 (fd 1) is at EOF > I close(5) > N exiting with status 0 > socat uses bidirectional streams by default, so if it says it hit EOF on "STDOUT", maybe it's treating it as ali

Re: [systemd-devel] Suggestion for a lowlevel fsnotify change daemon.

2015-07-28 Thread Mantas Mikulėnas
guess security would be a problem (how to determine which users may receive which events). -- Mantas Mikulėnas On Jul 28, 2015 18:46, "Stef Bon" wrote: > Hi all, > > for some time I have been looking at the issue why fsnotify does not work > with network filesystems a

Re: [systemd-devel] Nagios service fails

2015-07-30 Thread Mantas Mikulėnas
On Thu, Jul 30, 2015 at 4:20 PM, Sakhi Hadebe wrote: > > Jul 30 15:13:30 monitor.sanren.ac.za nagios[32281]: ***> One or more > problems was encountered while processing the config files... > That sounds like a nagios problem? -- M

Re: [systemd-devel] in-kernel structured logging

2015-07-30 Thread Mantas Mikulėnas
git.kernel.org/linus/c4e00daaa96d https://git.kernel.org/linus/3b552b92817c Rsyslog can import the structured data from /dev/kmsg: http://www.rsyslog.com/doc/v8-stable/configuration/modules/imkmsg.html -- Mantas Mikulėnas ___ systemd-devel mailin

Re: [systemd-devel] Complicated SysVInit Migration

2015-07-30 Thread Mantas Mikulėnas
eating the new instance directly. (Make a template foo@.service unit for the WLMS instances.) -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] working with PrivateNetwork=yes

2015-08-09 Thread Mantas Mikulėnas
t doesn't care about the names), it will just create a new one, and you'll have to re-do the above.) -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] How to remove *~ journal files?

2015-08-09 Thread Mantas Mikulėnas
l~, just in case. > What is the correct procedure to remove them? > `rm`, or let journald's built-in log rotation take care of them. -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Journal log rotation notification

2015-08-14 Thread Mantas Mikulėnas
is no need for a signal – inotify can inform you about renames as well. But, you shouldn't reimplement the entire logic yourself. (There's more to it, like separate systemd or user journals) *Instead, call sd_journal_get_fd(3) and let libsystemd do the monitoring.* -- Mantas Mikulėn

Re: [systemd-devel] possible kernel crash on bootctl install, can anyone confirm?

2015-08-14 Thread Mantas Mikulėnas
econd try, the kernel panics). I haven't gotten around to reporting it yet. -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Option substitution in unit configuration files?

2015-08-16 Thread Mantas Mikulėnas
full tmpfiles.d config, and tell the service to use "/run/myservice/myservice.pid". It might be simpler than touch+chown, and a bit cleaner. -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] network configuration

2015-08-17 Thread Mantas Mikulėnas
tworkManager could add rules for source-based routing by default – it would make some configurations (like two default routes) much easier to use... -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.fre

Re: [systemd-devel] udev "uaccess" tag does not support "hotplug" for some devices

2015-08-19 Thread Mantas Mikulėnas
ot;, TAG+="uaccess" > > in usb-storage.rules ? > > You might wanna rename the rule to something like 90-usb-storage.rules, > but thats besides the point. Hmm, in fact, the "uaccess" tag is consumed by: 73-seat-late.rules:15:TAG=="uaccess", E

Re: [systemd-devel] Systemd --user and the role of DBUS API

2015-08-19 Thread Mantas Mikulėnas
--user units dbus.socket and dbus.service necessary for this. The user bus address is "kernel:path=/dev/kdbus/$UID-user/bus;unix:runtime=yes" (if I got the syntax right?), or "kernel:path=/dev/kdbus/$UID-user/bus;unix:path=/run/user/$UID/bus". (Technically the same can b

Re: [systemd-devel] Systemd --user and the role of DBUS API

2015-08-19 Thread Mantas Mikulėnas
> *[igeiser] *Is this the method various “user units” howtos add a > dbus.socket and dbus.service into the user directory? I will research the > dbus repo for their details. This is happy lab fun time so I am play with > hacks if they don’t lead me away from the official solution. &g

Re: [systemd-devel] Systemd --user and the role of DBUS API

2015-08-19 Thread Mantas Mikulėnas
x27;t know how at-spi works in general. But AFAIK it launches its own separate bus anyway (I see dbus-daemon --config-file=/etc/at-spi2/accessibility.conf), so it could continue doing that. -- Mantas Mikulėnas ___ systemd-devel mailing l

Re: [systemd-devel] Systemd --user and the role of DBUS API

2015-08-19 Thread Mantas Mikulėnas
On Wed, Aug 19, 2015 at 7:13 PM, Simon McVittie < simon.mcvit...@collabora.co.uk> wrote: > On 19/08/15 14:12, Mantas Mikulėnas wrote: > > > The user bus address is > > ... tried by default in libdbus 1.9, GLib 2.45, and sd-bus; so you don't > need to set DBUS_SE

Re: [systemd-devel] udev "uaccess" tag does not support "hotplug" for some devices

2015-08-20 Thread Mantas Mikulėnas
CLs independently of udev rules, but it only does so when switching sessions; it doesn't do anything when a new device is connected.) -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedes

Re: [systemd-devel] grant users access to certain services only

2015-08-21 Thread Mantas Mikulėnas
ed in. > Hmm, and `findmnt` doesn't? `systemd --user` runs with the same privileges as the user, anyway. So if your SELinux policy is more permissive to systemd than regular programs, it's a bit weird, not to mention possibly insecure. -- Mantas Mikulėnas _

Re: [systemd-devel] grant users access to certain services only

2015-08-21 Thread Mantas Mikulėnas
On Fri, Aug 21, 2015 at 1:29 PM, Dominick Grift wrote: > On Fri, Aug 21, 2015 at 01:10:51PM +0300, Mantas Mikulėnas wrote: > > > > > > > > i think it kind of sucks that systemctl --user list-units can be used > to > > > determine who is currently logge

Re: [systemd-devel] grant users access to certain services only

2015-08-21 Thread Mantas Mikulėnas
On Fri, Aug 21, 2015 at 1:43 PM, Dominick Grift wrote: > On Fri, Aug 21, 2015 at 01:38:28PM +0300, Mantas Mikulėnas wrote: > > > > > Do they have access to `cat /proc/self/mounts`? > > Ouch yes... ok that is a dead end i suppose Right. That was my point. Restricting

Re: [systemd-devel] user/session buses

2015-08-22 Thread Mantas Mikulėnas
ugh it's actually a pitty. I believe it could be > useful in some cases notably remote login, not quite sure though. > > > W dniu 22.08.2015 o 16:58, Mantas Mikulėnas pisze: > > Well, you just wouldn't have more than one graphical session. That's part > of the gener

Re: [systemd-devel] Calculating Web page loads accurately with systemd-nspawn's network-veth & Xorg

2015-08-23 Thread Mantas Mikulėnas
t;" type errors. > > I assume it's because Xorg can't network to my local host's Xorg server. > Any tips how to manage this mapping? > > I need network isolation going for accurate measurements from $(grep > firefox /proc/net/dev), with hopef

Re: [systemd-devel] [udev] Limitation of capturing remove events?

2015-08-31 Thread Mantas Mikulėnas
red attributes into ENV. -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] bootctl: default mount point for the ESP partition.

2015-09-01 Thread Mantas Mikulėnas
kes it a bit easier to have the ESP remain > unmounted or read-only when not in active use, which is good for its own > robustness; a system crash corrupting an unmounted partition is less > likely than corrupting a mounted filesystem. > Though, why would a partition get corrupted, if i

Re: [systemd-devel] How to set time from Perl

2015-09-07 Thread Mantas Mikulėnas
;" for integers larger than 0x7fff. (Possibly also explicitly pass the value as a dbus_int64()...) -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] startxfce4 vs logind

2015-09-19 Thread Mantas Mikulėnas
this: https://projects.archlinux.org/svntogit/packages.git/tree/trunk/xserverrc?h=packages/xorg-xinit&id=37b4597466e99667ba6035854b3386a2ee83e563 (note this is no longer present in Arch's xinit as it has been moved to startx itself) I don't know how startxfce4 launche

Re: [systemd-devel] How to automount

2015-09-21 Thread Mantas Mikulėnas
> I don't think there's any way to have something auto-unmount There certainly is – udev has been unmounting unplugged drives for many years. It's done by default. On Mon, Sep 21, 2015, 23:10 Paul D. DeRocco wrote: > > From: Umut Tezduyar Lindskog [mailto:u...@tezduyar.com] > > > > I am not sur

Re: [systemd-devel] How to automount

2015-09-21 Thread Mantas Mikulėnas
ou asking the OS to be prescient? > to avoid data loss. The only alternative is to disable write buffering, > which makes things slow, and stresses the drive. > No, that's not the only alternative – making the OS flush data more often is another, e.g. as Windows does (every

Re: [systemd-devel] Running a script as FIRST script before shutdown

2015-09-23 Thread Mantas Mikulėnas
erally inverse of the boot order – if a unit has "After=X", it will be started after X, but stopped before X. So your unit should have a Requires= (or Wants=) plus an After= for every service it actually needs. Also – the unit seems more like a Type=oneshot, not a Type=simple. -- Mant

Re: [systemd-devel] Running a script as FIRST script before shutdown

2015-09-24 Thread Mantas Mikulėnas
On Thu, Sep 24, 2015, 09:40 Luca Bertoncello wrote: > Hi Lennart, > > thank you for your answer! > > > There is no concept of "first" or "last" in systemd, since it's not > clear what > > that's supposed to mean if there are multiple, and what happens if some > > operation results in activation?

Re: [systemd-devel] What's mounting this partition?

2015-09-26 Thread Mantas Mikulėnas
led from one of those distros? > udisks v1 used to do that by default, and is still installed in some places. (e.g. udiskie probably still depends on it?) udisks v2 also has an option (controlled through an udev property, ENV{UDISKS_FILESYSTEM_SHARED}) to do the same. --

Re: [systemd-devel] suspend/resume hooks, the right way

2015-09-26 Thread Mantas Mikulėnas
var/lib/upower) -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] how to bind to other drivers using systemd

2015-09-28 Thread Mantas Mikulėnas
I wonder if this could be handled with a generic Type=oneshot, ExecStart=driverctl bind foo... -- Mantas Mikulėnas On Sep 28, 2015 21:48, "Flavio Leitner" wrote: > On Mon, Sep 28, 2015 at 08:06:50PM +0200, Kay Sievers wrote: > > On Sun, Sep 27, 2015 at 11:37 PM, Flav

Re: [systemd-devel] /etc/dbus-1/session-local.conf

2015-10-04 Thread Mantas Mikulėnas
You normally shouldn't need to do this. For user bus, the address is configured in dbus.socket; for session buses it is passed as command line option. On Sun, Oct 4, 2015, 21:40 arnaud gaboury wrote: > As I am trying to improve my knowledges in how dbus work, I discovered > this file in /etc/dbu

Re: [systemd-devel] /etc/dbus-1/session-local.conf

2015-10-04 Thread Mantas Mikulėnas
Also this is not the path used by most software, anyway; the user bus is expected at %t/bus, not %t/user_bus_address. I think it was moved in v205 or v215. On Mon, Oct 5, 2015, 07:03 Mantas Mikulėnas wrote: > You normally shouldn't need to do this. For user bus, the address is > co

Re: [systemd-devel] systemd and hostname supplied by DHCP

2015-10-05 Thread Mantas Mikulėnas
ed system due it's footprint but I suspect that I should live > with it. :-) > While I'm not really comfortable suggesting this, old polkit versions (v0.105 and earlier) used a different rules format without JavaScript. -- Mantas Mikulėnas ___ syst

Re: [systemd-devel] systemd

2015-10-09 Thread Mantas Mikulėnas
use devel mailing list for such questions. > It's also a tech support list. > If you want to install systemd on linux mint, you should do something like > this: > http://superuser.com/questions/917804/switching-to-systemd-on-linux-mint It's Debian-specific; I&

Re: [systemd-devel] Fix for - udev/ata_id failing on SATA drives behind JMicron USB bridge

2015-10-15 Thread Mantas Mikulėnas
find it. > Try `tig blame src/udev/ata_id/ata_id.c`, it follows renames and you can jump to an older commit using , and back using < -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] systemctl edit via polkit results in access denied

2015-10-16 Thread Mantas Mikulėnas
nit files directly. For now, use directory ACLs. (Wonder if this could somehow make use of GNOME's new admin:/// vfs...) -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] SMACK runtime vs build-time checks? (aka: tmp.mount broke my boot)

2015-10-17 Thread Mantas Mikulėnas
build-time option, which creates problems when booting a non-SMACK kernel... Any ideas on how to fix it? All previous such fixes were for API filesystems in mount-setup.c and could do flexible checks, but that clearly won't work for mount units. -- Mantas

Re: [systemd-devel] systemd boot sequence doubt

2015-10-22 Thread Mantas Mikulėnas
er.target ├─apache2.service ├─bind9.service ├─binfmt-support.service ├─cron.service ├─dbus.service See also manual pages for bootup(7), systemd.unit(5) -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] systemd services via SSH (-H key)

2015-10-23 Thread Mantas Mikulėnas
; is kind of "path": connect to host "foo", enter its container "bar", > and from there connect to "bar"'s container "baz" and then further > down into "baz"'s container "waldo"... Containers are stackable after

Re: [systemd-devel] systemd services via SSH (-H key)

2015-10-23 Thread Mantas Mikulėnas
On Fri, Oct 23, 2015 at 2:11 PM, Lennart Poettering wrote: > On Fri, 23.10.15 14:03, Mantas Mikulėnas (graw...@gmail.com) wrote: > > > On Fri, Oct 23, 2015 at 1:55 PM, Lennart Poettering < > lenn...@poettering.net> > > wrote: > > > > > On

Re: [systemd-devel] target file and executable file relationship doubt

2015-10-26 Thread Mantas Mikulėnas
ependencies local-fs.target local-fs.target ● ├─boot.mount ● ├─home.mount ● ├─tmp.mount ● └─var-lib-machines.mount -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] systemd-modules-load path

2015-10-27 Thread Mantas Mikulėnas
d.d uses the exact same locations and configuration as kmod & modprobe: http://man7.org/linux/man-pages/man8/modprobe.8.html -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] How to source a variable file using systemd

2015-10-27 Thread Mantas Mikulėnas
but yet another variable. > There is no such option in systemd. If you need shellscript-like features, just run a wrapper shell script via ExecStart. -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Delete stale *.journal-files from containers

2015-10-28 Thread Mantas Mikulėnas
ted by journal-remote (where the admin might want to keep it for archival purposes), and so on. Therefore journald will not delete journals with other machine-ids, since doing so would possibly apply two conflicting policies to the same logs – yours, and the container's/client's. -- Ma

Re: [systemd-devel] Help writing a user service file that will exec a command upon system sleep

2015-11-02 Thread Mantas Mikulėnas
#!/bin/sh > # Approach cribbed from http://www.opopop.net/Harnessing_DBus/ Might as well use ctypes.sh then... Or a more capable language: https://gist.github.com/grawity/a10ee46d7ff58048d483 -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Restarting nmb.service from within a program

2015-11-03 Thread Mantas Mikulėnas
reedesktop.org/wiki/Software/systemd/hostnamed/ and so on. -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] [PATCH 1/2] detect-virt: detect in best-heuristic order

2015-11-04 Thread Mantas Mikulėnas
orted as kvm, and any other qemu > as qemu. > As I understand it, VirtualBox doesn't use KVM as *backend*; it only exposes a KVM-like paravirt interface to *guests*. -- Mantas Mikulėnas ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

<    3   4   5   6   7   8   9   10   11   12   >