Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add mkosi.output/ to .gitignore | Zbigniew Jędrzejewski-Szmek | 2017-11-29 | 1 | -0/+1 |
| | | | | | It's not something that would ever be checked in, and mkosi along with systemd, so this directory is likely to appear. | ||||
* | mkosi: do not build man pages | Zbigniew Jędrzejewski-Szmek | 2017-11-29 | 1 | -1/+1 |
| | |||||
* | Merge pull request #7492 from keszybz/coverity-fixes | Yu Watanabe | 2017-11-29 | 33 | -205/+142 |
|\ | | | | | A few more cleanups based on coverity and valgrind | ||||
| * | udev/collect: use _cleanup_ in one more place | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 1 | -7/+3 |
| | | | | | | | | This doesn't make the code pretty, but it at least makes it a tiny bit shorter. | ||||
| * | udev/collect: remove dead conditional | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 1 | -2/+0 |
| | | | | | | | | | | Coverity rightly says that 'word' is assigned to 'ptr', and 'word' was assigned from 'ptr' (yikes) right after a non-null check. | ||||
| * | journal: avoid undefined behaviour in float division by 0.0 | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 1 | -1/+1 |
| | | | | | | | | | | | | Coverity says that's undefined. I'm pretty sure we always would get a nan, but let's avoid (formally) undefined behaviour since that can cause compilers to do strange things. | ||||
| * | networkd: fix memleak of Rules | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 2 | -6/+4 |
| | | | | | | | | This was the issue mentioned in 93f9da6e0a. | ||||
| * | journal: use new helpers with journal_file_close | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 4 | -26/+4 |
| | | | | | | | | journal_file_close_set() is not necessary anymore. | ||||
| * | journal-remote: add helper function and use hashmap_free_with_destructor | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 1 | -9/+8 |
| | | |||||
| * | cryptsetup-generator: add helper function and use hashmap_free_with_destructor | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 1 | -13/+7 |
| | | |||||
| * | coredump: fix typo and use hashmap_free_with_destructor | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 1 | -9/+4 |
| | | |||||
| * | machine-image: convert image_hashmap_free() to an static inline helper | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 2 | -10/+3 |
| | | |||||
| * | Add set/hashmap helpers for non-trivial freeing and use where straighforward | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 19 | -114/+106 |
| | | | | | | | | | | | | A macro is needed because otherwise we couldn't ensure type safety. Some simple tests are included. No functional change intended. | ||||
| * | Use hashmap_free_free where appropriate | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 2 | -8/+2 |
| | | |||||
* | | Merge pull request #7490 from yuwata/test-basic | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 10 | -54/+160 |
|\ \ | |/ |/| | add more tests for basic functions | ||||
| * | test-cap-list: add more tests about capability_set_{from,to}_string() | Yu Watanabe | 2017-11-28 | 1 | -9/+59 |
| | | |||||
| * | test: move tests about cap_list_cap() from test-cap-list to test-capability | Yu Watanabe | 2017-11-28 | 2 | -36/+39 |
| | | |||||
| * | cap-list: check range of numeric value | Yu Watanabe | 2017-11-28 | 1 | -2/+6 |
| | | |||||
| * | test-bitmap: add tests for bitmap_copy() | Yu Watanabe | 2017-11-28 | 1 | -0/+11 |
| | | |||||
| * | test-architecture: add more tests | Yu Watanabe | 2017-11-28 | 1 | -2/+16 |
| | | |||||
| * | test-alloc-util: add tests for memdup_suffix0() and greedy_realloc() | Yu Watanabe | 2017-11-28 | 1 | -5/+27 |
| | | |||||
| * | tests: add tests for empty string | Yu Watanabe | 2017-11-28 | 2 | -0/+2 |
| | | |||||
| * | alloc-util: coding style fix | Yu Watanabe | 2017-11-28 | 2 | -2/+2 |
| | | |||||
* | | networkd: Add comment for setting_mtu #7460 (#7489) | Susant Sahani | 2017-11-28 | 1 | -0/+3 |
| | | | | | | Follow up #7460 | ||||
* | | Merge pull request #7486 from keszybz/coverity-fixes | Lennart Poettering | 2017-11-28 | 19 | -130/+274 |
|\ \ | |/ |/| | Fixes for issues spotted by coverity (and some cleanups) | ||||
| * | pid1: improve syntax in error message | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 1 | -2/+2 |
| | | |||||
| * | pid1: clarify that min_max is always initialized | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 1 | -1/+1 |
| | | | | | | | | | | read_one_line_file() always returns <= 0, so the code was OK, but let's write the check a bit differently to make it obvious that min_max is always set. | ||||
| * | test-hostname-util: add assert_se's to make coverity happy | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 1 | -5/+5 |
| | | |||||
| * | test-process-util: add (void) cast to make coverity happy | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 1 | -1/+1 |
| | | | | | | | | | | The intent is for the call to succeed only when privileged, so make that clear. | ||||
| * | test-fd-util: add assert_se to make coverity happy | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 1 | -1/+1 |
| | | |||||
| * | udevadm-monitor: add some assert_se's to make coverity happy | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 1 | -6/+6 |
| | | | | | | | | We do that elsewhere and it's nice to be consistent. | ||||
| * | core/umount: use _cleanup_ in one more place | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 1 | -10/+4 |
| | | |||||
| * | sd-resolve: check that name fits in the specified packet length | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 1 | -17/+29 |
| | | | | | | | | Coverity complained that we didn't check if the data is long enough. | ||||
| * | shim: fix logically dead code | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 1 | -9/+4 |
| | | | | | | | | | | | | The alternate verification path could never be taken. Found by coverity. | ||||
| * | networkd: remove dead code | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 1 | -3/+0 |
| | | | | | | | | Found by coverity. | ||||
| * | test-ndisc-ra: add assert_se() to make coverity happy | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 1 | -1/+1 |
| | | |||||
| * | boot/shim: fix char ** vs char * mismatch | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 1 | -2/+2 |
| | | | | | | | | | | | | This code cannot have ever worked ;( Found by coverity, obvious when the type is not obfuscated to void*. | ||||
| * | boot/efi: fix NULL dereference | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 1 | -7/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | The comment above makes the intent of the code pretty clear: "use security2_protocol == NULL as indicator". So revert the condition in the check and fix the logic in the comment while at it. The question is how this could have ever worked: if BS->LocateProtocol (which is supposedly optional) ever failed, we'd crash here. Strange. Found by coverity. | ||||
| * | dissect-image: simplify check for passphrase presence | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 1 | -3/+3 |
| | | | | | | | | | | | | m->encrypted is set when fstype=="crypto_LUKS", but this is not obvious when reading decrypt_partition(). Just check if passphrase is set before using it. | ||||
| * | networkd: fix reversed arguments | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 3 | -5/+3 |
| | | | | | | | | | | | | Found by coverity. Also drop unused return value while at it. | ||||
| * | networkd: plug some memleaks in rule serialization/deserialization | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 2 | -4/+7 |
| | | | | | | | | | | | | | | This fixes the (mostly theoretical, since we're only parsing data that we write ourselves) memleak when iif or oif is deserialized multiple times. Unfortunately it does not fix the memleak when rule is freed, but that'll require a bigger effort. | ||||
| * | networkd: fix serialization of {Incoming,Outgoing}Interface | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 2 | -4/+25 |
| | | | | | | | | | | | | | | | | Let's just say that the code wasn't fully functional ;( Since we only had the parser for serialization, and not the writer, we are free to change the format. So while at it, let's use shorter names in the serialization format that match the surrounding style. | ||||
| * | Add test-routing-policy-rule | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 2 | -0/+99 |
| | | |||||
| * | test-network: use automatic cleanup | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 1 | -12/+6 |
| | | |||||
| * | networkd: parse the rvalue, not the option name | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 1 | -1/+1 |
| | | | | | | | | :( | ||||
| * | networkd: move rule loading to a separate function | Zbigniew Jędrzejewski-Szmek | 2017-11-28 | 3 | -54/+69 |
| | | | | | | | | No functional change. | ||||
| * | networkd: unbork rule serialization | Zbigniew Jędrzejewski-Szmek | 2017-11-27 | 2 | -11/+27 |
| | | | | | | | | | | | | | | We'd write something like RULE=from=250.250.240.0/24 to=(null)/0 tos=0 fwmark=0/0 table=12 RULE=from=250.250.250.0/24 to=(null)/0 tos=0 fwmark=0/0 table=11 | ||||
* | | Merge pull request #7398 from keszybz/udev-list | Lennart Poettering | 2017-11-28 | 2 | -28/+20 |
|\ \ | | | | | | | udev: use list.h instead of udev_list_node | ||||
| * | | udevd: remove unused list node | Simon Peeters | 2017-11-22 | 1 | -1/+0 |
| | | | |||||
| * | | udevd: use list.h instead of udev_list_node | Simon Peeters | 2017-11-22 | 2 | -27/+20 |
| | | |