Use of the systemddir variable was removed from the diod repository in
commit c081e851744d33025ff2626029a9ac2a5f9ccf8d.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Use of tcp-wrappers was removed from the diod repository in commit
59b221f7b5eb24a20fdd886fdd1f8ff9810bdb73.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Along with the new commits, we do the following:
- drop the upstreamed patch
- pass our systemd system unit dir to configure
- disable auth to fix a build error
Bumping diod to version 1.0-pre27-763-g54d1325, which comprises the following commits:
b91d74b diod: Fix uint32 overflow when Tread/Twrite count > UINT32_MAX-IOHDRSZ
539827e diod: keep --foreground option for compatibility
9126275 build: don't just warn if libcap is missing
729830b build: don't just warn if munge is missing
4b04d68 diod: require --no-auth if not build with munge
45ae4ac diod: make multi-user initialization errors fatal
fb4a588 diod: refactor startup logic for clarity
a474d34 build: adjust multi-user configuration options
4684e5c diod: log access policy
06e325b diod: use setgroups() on linux for transition
d093411 diod: log user transition and simplify code
cce7b2d diod: don't cache effective uid
2948cc7 systemd: support systemctl reload diod
5e22ace diod: log listen addresses
6d3d25d diod: drop program prefix from logs
e5d270f testsuite: fix test server TAP logging
d666304 diod: initialize rdma after user transitions
ef46b9b ci: add build-only check for RDMA
8615778 ci: cull package dependencies
9380f2d build: fix rdma configure logic
2038957 rdma: fix include paths
7aea316 systemd: switch to Type=exec from Type=forking
2f9e3f8 man: drop --foreground from diod(8)
3dc9363 diod: always run in the foreground
cc881bd man: drop syslog from diod(8), diod.conf(5)
4de6eed diod: drop --logdest=syslog[options]
c8775c2 libdiod: drop leftover TCP Wrappers stuff
9abd6ae testsuite: drop setgroups unit test
d367f3a diod: make SYS_setgroups test safer
b78d7cd diod: improve supplementary group warning + comments
cf4bfac build: drop FreeBSD automatic --disable-diodmount
43b2e25 build: drop configure --disable-tests option
1a9391d build: drop checks for vsprintf(), vsscanf()
59b221f drop TCP Wrappers support
e96f369 build: drop conditional getopt stuff
c510de8 build: drop libpopt references
bd0d3ac tests: Handle various time_t sizes in printf (#124)
adc86ad testsuite: drop unused tests
8b18a31 testsuite: skip FALLOC_FL_PUNCH_HOLE in fsx
e08d71e testsuite: drop record locking kernel tests
c24c22f testsuite: drop fcntl locking test
7cacf63 testsuite: add locking unit test
9b1bdc3 libnpclient: add npc_lock() and npc_getlock()
7ea6e7f libnpfs: replace kernel 9p.h header
4ab0076 don't include 9p.h directly
b66c8a9 testsuite: reduce unnecessary include directives
e057687 headers include the headers they depend on
cb0c9dc add header guards
c992e0e testsuite: factor out duplicated server code
5567efc testsuite: factor out duplicated thread code
9730b8f eliminate src/daemon directory
f5fe359 testsuite: enable parallel test harness
ff57671 build: fix Makefile.am typo
932fea8 testsuite: make unit tests work w/parallel harness
ccf9dc5 liblsd: clean up source directory dependencies
3b6ce5c ci: valgrind and sudo some unit tests
7b435ab testsuite: convert multiuser cli/srv test to TAP
3d5d90a testsuite: convert dir/file cli/srv test to TAP
2e4645d testsuite: convert simple np cli/srv test to TAP
aaa28bc testsuite: convert config file test to TAP
3a97415 testsuite: convert setreuid test to TAP
b810cd4 testsuite: convert setgroups groups test to TAP
c87295e testsuite: convert setfsuid test to TAP
1300b50 testsuite: convert fcntl locking test to TAP
3022797 testsuite: convert capability test to TAP
f8cd2ed testsuite: convert list test to TAP
e7a67b6 testsuite: convert opt test to TAP
6829e1e testsuite: convert fidpool test to TAP
ca886f4 testsuite: convert encoding test to TAP
a1e4e7d testsuite: add TAP unit test framework
cf9496b diodmount: drop --9nbd-attach, --9nbd-detach opts
dbed88e fix fsid in Rstatfs result
d2b311f doc: update Rstatfs description
573d107 implement Tfsync datasync
075c321 doc: Tfsync is missing 'datasync'
2265d6b libnpfs: catch overflow in np_deserialize_p9dirent
6b4384d build: add make deb target for debian package
e97e68d src: move source code to one directory
d698cd9 man: move all man pages to one directory
7a5671b simplify autogen.sh script
43db888 build: combine and simplify etc and scripts
c081e85 configure: normalize systemd unit install
968bd75 configure: drop AC_HEADER_STDC
c02fe09 configure: use AC_CONFIG_HEADERS
7bc04ab libnpfs: fix off by one buffer check
34263af diod: check offset in xattr read/write
65d69a8 diod: handle xattr write errors properly
c529cd8 ci: run kernel tests in CI
b0a25c5 testsuite: fix racy test looking for old bug
f3c4a7d ci: add scrub to github workflow
e4bbbe7 testsuite: drop subversion test
1e3cb24 testsuite: remove security xattr XFAIL
55da67f testsuite: add setfattr prereq to t46,t47
6dea909 testsuite: drop internal copy of dbench
eb0306c testsuite: remove dbench XFAIL
d4401fc testsuite: set root mount propagation to private
2b03061 Shutdown all connection threads when applications is terminated
f300f90 Signal that connection is done after all cleanup has finished
9819777 Use a pthread_cleanup callback function in connection thread
49c4c32 signal refcond in connection under lock
4c6e4bd tests: Skip kern tests t35 and t40 unless there is enough disk space
6985948 Mark kernel tests t19 t23 t32 t37 t43 and t47 as XFAIL
70e9b6b tests/kern/runtest: Delete PATH_EXPDIR and PATH_MNTDIR on failure
180749e tests/user/runtest: Delete PATH_EXPDIR when it is a file
2bb882a tests/user/t16: Delete the tempfile on failure
e0cd706 Don't use pushd/popd in kern test t33
e9097f9 Use grep -E instead of egrep in kern test t28
9684b82 kern test t28 requires rsync, skip if it not available
eae17bc Handle various time_t sizes in printf and scanf
76fd64e ci: drop deprecated 18.04 actions runner
f7dc0e8 add mergify support
f732f19 auto.diod.in: remove bashisms
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Just needs a single patch to handle the lua feature in configure when
cross-compiling.
f732f19 auto.diod.in: remove bashisms
7e0df4c build: Update ax_compiler_vendor.m4 from autoconf-archive 2023.02.20
7e56831 build: Update ax_lua.m4 from autoconf-archive 2023.02.20
76c7c18 build: Install diod.service and auto.diod without install-data-local
af5972f build: Add missing , to AS_CASE in configure.ac
6cbbacf diodmount: update man page with privport option
3777ea1 libdiod: Support ipv6 in diod_sock_connect
ddf6071 libdiod: Set global options on exports specified on
1db9e57 libdiod: support privport on ipv6
ae7c536 diodmount: Add option to set privport
66652bf diod: allow walk on open fids
2822ea6 tests: disable open-walk test
56f24b2 diod: fix incompatible-pointer-types warning
ab03b7f utils/diodls: fix error-format warnings
84d4e51 github: extend build matrix to include ubuntu18
203b4c7 README: reference SPDX identifier
d5444ce license: update 9p.h kernel header
0a5c80e license: update npfs source headers
88350f3 license: update license header to abbreivated one
57a621d protocol: fix plan9 manual links
ee95dd9 tests/misc: fix distcheck problems
d8e1e67 README: update dependencies
5425713 ci: install lua interpreter as prereq
25bebfb build: add configure --disable-config
e7f9df9 build: fix lua detection
3eabd5d ci: create build matrix with clang, gcc
20ca897 build: conditional use of gcc warning flags is broken
16f8da4 build: turn all compiler warnings into errors
59bdaa1 tests/kern/tfcntl3: drop dead code
7a0f557 tests/kern/tfcntl2: drop dead code
dd4d4c0 tests/kern/misc: ignore stringop-truncation warnings
3a05837 tests/kern/fsx: ignore unused-result warnings
c918476 tests/kern/postmark: ignore format-overflow warn
b20268c tests/kern/fsx: fix incorrect message
7ee5b68 tests/kern/pathwalk: check snprintf return value
657dc10 diod: use readdir(3) in ioctx_readdir()
cba3834 diod: normalize whitespace in ioctx_readdir_r()
3e8ed95 diod: use readdir() not deprecated readdir_r()
194416d diod: define _DEFAULT_SOURCE not _BSD_SOURCE
ddcbd3b diodmount: initialized variable
698d055 diodmount: check system() return value
787994e build: suppress liblsd errors
192229f build: enable automake "maintainer mode"
0086b9b libnpfs: don't call snprintf() with NULL %s arg
620792d ci: add basic github workflow
530e2d5 move main.yml into the correct directory
783cb8c ci: add github workflow stub
c7eccf9 ci: drop travis config
ff26333 Use PKG_CHECK_MODULES for ncurses, drop legacy curses
91d8966 Silence warnings when compiling with clang
3bb5798 Increase diod server maximum msize setting to 1MB
896f37c Add option to disable hostname lookups
cdd12f2 Remove empty README
c2cd87c Document IPv6 address format
899306b diod: Add support for IPv6 addresses
1878ce9 diodmount: Add support for IPv6 addresses
82b819f Splits the package in diod, and diod-utils.
cf33c8e Fixes spec file for systemd build on CentOS 7.
9af7d94 Travis-ci: added support for ppc64le
550ba49 document the FreeBSD changes
bfe6c4b implement impersonation on FreeBSD
c28286f restore user-linux.c from user-linux-0.c
2624b4f copy user-linux.c to user-freebsd.c
f4ae6ef save a copy of user-linux.c as user-linux-0.c
228c2d2 minor cleanup in liblsd/hostlist.c
f325ad5 fix the help message
e20572a finish the split of user.c
11ed83c remove non-shared code from user.c
929276d move common code from user.c out of the way
7d3d01a leave only a stub in user-stub.c
d7abf6f create user-stub.c from user.c
828cf89 remove non-Linux bits from user-linux.c
3eb807c create user-linux.c from user.c
490d7bc add a setting to configure access=user API
243b0b3 disable diodmount and tests except on Linux
1ece6d7 make building tests configurable
a3610ca make building diodmount configurable
13eace1 do not special-case Linux to do the same thing
33cd2b0 FreeBSD does not have ENODATA
e6ecd06 remove unused ifdefs
42958d2 check for missing defines directly
244adc7 use autoconf to detect headers
f3b9cae small fixes for FreeBSD
73fe9a6 Update protocol.md
f0f7d0d Fix systemd unit dir and file permissions
81eef82 Fix autoconf failure: Ensure m4 macro inclusion
ca1b0f5 Place systemd unit into $(libdir)/systemd/system
5551dbc libnpclient/read.c: fix out-of-bounds write
50bc4ea libdiod/diod_sock.c: zero initialize sockaddr
1d40ba5 diod/ops.c: distinguish opened and unopened Fids in {set,get}attr
d1d31c9 diod/ioctx.c: add stat, chmod, chown, truncate, utimensat
6749db3 diod/ops.c: disallow walk on opened fids
f1f1b38 tests/user: add tests for operations on opened fids
6fbe656 tests: fix xattr test build
d3946ca tests: check for daemon user
ff730b1 Fix typo in P9_TRENAME format
9690086 add git to debian dependencies
0498089 diod/ops.c: add header file for makedev
043f1ea cleanup: remove files that should not have been committed
0dd51c5 travis-ci: begin building under travis
fb191b7 tests/kern: avoid use of relative paths
47c63b0 tests/user: avoid use of relative paths
320eb5a tests/misc: avoid use of relative paths
74bfd84 test/misc: include test.h in dist target
89fb32d tests/kern/dbench: fix distcheck problem
d6881e0 build: fix source references in tests/misc
2379e20 build: include from $(srcdir) not relative path
f86b24e test/user: skip t18,19 if xattr not enabled
fc02397 test/user/attach: reduce number of threads
2f92e04 cleanup: drop trailing whitespace from test source
f958117 build: drop META
f33d72a libnpfs: use PACKAGE_NAME-PACKAGE_VERSION not META_ALIAS
5add7d2 dtop: show PACKAGE_VERSION not META_VERSION.RELEASE
3a51ec0 man: use PACKAGE not META macros
1fd1b11 spec: use PACKAGE not META macros
cf3247a cleanup: drop trailing whitespace from source
7ca7f56 protocol.md: fix typos and markdown errors
d04c39e README.md: trivial fixes
9d37f4a protocol.md: fix typos
Change-Id: I5f06ccaa86f935d5f32a0800c0edb49b9d17b0ff
Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
bitbake has been enhanced such that SRCPV is no longer needed in
PV to handle updating git hashes and task signatures.
We can simplify our PV by dropping SRCPV
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
While the insane.bbclass upstream-status check hasn't been made
default, users of meta-virtualization may have it enabled in their
distros .. so the effect is the same. We must have this tracking
tag in out patches.
This is a bulk update to add the tag and silence the QA message.
As packages get updated, the normal/routine process of checking
the patches will continue, and the status fields may (or may not)
get more useful.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
These changes are the result of running the convert-spdx-licenses.py
oe-core script.
There's no impact to the build, but we will avoid issues when
interacting with core QA by the alignment.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
github is removing git:// access, and fetches will start experiencing
interruptions in service, and eventually will fail completely.
bitbake will also begin to warn on github src_uri's that don't use
https. So we convert the meta-virt instances to use protocol=https
(done using the oe-core contrib conversion script)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
As introduced in the oe-core post:
https://lists.openembedded.org/g/openembedded-core/message/157623
SRC_URIs without an explicit branch will generate warnings, and
eventually be an error.
We run the provided conversion script to make sure that meta-virt
is ready for the change.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
OEcore/bitbake are moving to use the clearer ":" as an overrides
separator.
This is pass one of updating the meta-virt recipes to use that
syntax.
This has only been minimally build/runtime tested, more changes
will be required for missed overrides, or incorrect conversions
Note: A recent bitbake is required:
commit 75fad23fc06c008a03414a1fc288a8614c6af9ca
Author: Richard Purdie <richard.purdie@linuxfoundation.org>
Date: Sun Jul 18 12:59:15 2021 +0100
bitbake: data_smart/parse: Allow ':' characters in variable/function names
It is becomming increasingly clear we need to find a way to show what
is/is not an override in our syntax. We need to do this in a way which
is clear to users, readable and in a way we can transition to.
The most effective way I've found to this is to use the ":" charater
to directly replace "_" where an override is being specified. This
includes "append", "prepend" and "remove" which are effectively special
override directives.
This patch simply adds the character to the parser so bitbake accepts
the value but maps it back to "_" internally so there is no behaviour
change.
This change is simple enough it could potentially be backported to older
version of bitbake meaning layers using the new syntax/markup could
work with older releases. Even if other no other changes are accepted
at this time and we don't backport, it does set us on a path where at
some point in future we could
require a more explict syntax.
I've tested this patch by converting oe-core/meta-yocto to the new
syntax for overrides (9000+ changes) and then seeing that builds
continue to work with this patch.
(Bitbake rev: 0dbbb4547cb2570d2ce607e9a53459df3c0ac284)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Error:
diod/ops.c:845: undefined reference to `makedev'
Fixed:
Glibc removes sys/sysmacros.h which defines makedev from sys/types.h
since v2.28. [Commit ID: e16deca62e16f]
And then glibc suggestions us to include <sys/sysmacros.h> directly if
code needs it.
Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
diod is a multi-threaded, user space file server that speaks 9P2000.L
protocol.
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>