Find a file
Filipe Brandenburger 3f10c66270 bus-socket: Fix line_begins() to accept word matching full string
The switch to memory_startswith() changed the logic to only look for a space or
NUL byte after the matched word, but matching the full size should also be
acceptable.

This changed the behavior of parsing of "AUTH\r\n", where m will be set to 4,
since even though the word will match, the check for it being followed by ' '
or NUL will make line_begins() return false.

Tested:

- Using netcat to connect to the private socket directly:
  $ echo -ne '\0AUTH\r\n' | sudo nc -U /run/systemd/private
  REJECTED EXTERNAL ANONYMOUS

- Running the Ignition blackbox test:
  $ sudo sh -c 'PATH=$PWD/bin/amd64:$PATH ./tests.test'
  PASS

Fixes: d27b725abf
2018-07-17 21:42:20 +02:00
.github github: use multiple issue templates 2018-05-10 07:58:38 -07:00
.mkosi mkosi: add mkosi snippet for ubuntu, too 2018-06-14 17:44:20 +02:00
catalog tree-wide: drop copyright lines for more authors 2018-06-22 16:39:45 +02:00
coccinelle tree-wide: drop !! casts to booleans 2018-06-13 10:52:40 +02:00
doc sd-bus: make BUS_DEFAULT_TIMEOUT configurable 2018-07-16 15:11:50 +02:00
factory/etc
hwdb hwdb: deprecate the POINTINGSTICK_CONST_ACCEL property 2018-07-13 08:27:10 +02:00
man man: elaborate a bit on the effect of PrivateNetwork= 2018-07-17 21:41:23 +02:00
modprobe.d Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
network Drop my copyright headers 2018-06-14 13:03:20 +02:00
po Merge pull request #9348 from keszybz/copyright-removal 2018-06-20 12:27:56 +02:00
presets Drop my copyright headers 2018-06-14 13:03:20 +02:00
rules rules: Add by-id symlinks for persistent memory 2018-07-10 09:55:57 +02:00
shell-completion meson: drop redundant messages 2018-07-10 23:24:39 -07:00
src bus-socket: Fix line_begins() to accept word matching full string 2018-07-17 21:42:20 +02:00
sysctl.d Drop my copyright headers 2018-06-14 13:03:20 +02:00
sysusers.d sysusers,tmpfiles: re-create systemd-network, systemd-resolve and systemd-timesync 2018-07-16 17:11:50 +02:00
test test: Drop SKIP_INITRD for QEMU-based tests 2018-07-16 11:31:24 +02:00
tmpfiles.d sysusers,tmpfiles: re-create systemd-network, systemd-resolve and systemd-timesync 2018-07-16 17:11:50 +02:00
tools coverity.sh: fail if uploading data to Coverity Scan is forbidden 2018-06-25 22:22:29 +00:00
travis-ci travis: use Fedora 27 as a base image 2018-06-05 12:03:18 +03:00
units units: let's use two ExecStart= lines instead of ; 2018-06-20 23:59:29 +02:00
xorg login: avoid external process call 2018-01-12 18:02:57 +01:00
.dir-locals.el meson: also indent scripts with 8 spaces 2017-04-25 08:49:16 -04:00
.editorconfig editorconfig: add rule for meson.build files (#6671) 2017-08-28 16:37:23 +02:00
.gitattributes
.gitignore Add mkosi.output/ to .gitignore 2017-11-29 14:33:56 +01:00
.mailmap update NEWS contributors list again 2018-06-20 13:32:57 +02:00
.travis.yml Merge pull request #9193 from keszybz/coverity 2018-06-14 09:59:58 +02:00
.vimrc
.ycm_extra_conf.py ycm: add doc string for all the functions in configuration file 2017-11-29 13:21:49 -07:00
configure build-sys: add basic support for ./configure && make && make install 2017-07-18 10:05:06 -04:00
LICENSE.GPL2
LICENSE.LGPL2.1
Makefile build-sys: Fix Makefile wrapper for install target (#6548) 2017-08-07 11:29:20 +02:00
meson.build build-sys: Detect whether struct statx is defined in sys/stat.h 2018-07-16 11:14:29 +02:00
meson_options.txt tree-wide: use "polkit" to refer to PolicyKit/polkit 2018-07-16 12:44:24 +02:00
mkosi.build tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
mkosi.default
NEWS tree-wide: use "polkit" to refer to PolicyKit/polkit 2018-07-16 12:44:24 +02:00
README README: clarify that not only systemd should use prefix=/usr, but its deps too 2018-07-17 06:37:06 -07:00
README.md README.md: add an LGTM badge 2018-06-26 18:15:09 +02:00
TODO update TODO 2018-06-20 23:59:29 +02:00
zanata.xml po: add basic fedora.zanata.org configuration 2018-02-19 13:56:57 +01:00

systemd - System and Service Manager

Count of open issues over time Count of open pull requests over time Build Status
Coverity Scan Status
CII Best Practices
Build Status
Language Grade: C/C++

Details

General information about systemd can be found in the systemd Wiki.

Information about build requirements are provided in the README file.

Consult our NEWS file for information about what's new in the most recent systemd versions.

Please see the HACKING file for information how to hack on systemd and test your modifications.

Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.

When preparing patches for systemd, please follow our Coding Style Guidelines.

If you are looking for support, please contact our mailing list or join our IRC channel.

Stable branches with backported patches are available in the stable repo.