542 Commits

Author SHA1 Message Date
Giuseppe Scrivano
222c3a1901
Merge pull request #208 from TomSweeneyRedHat/sec
Add Security Policy
2020-05-11 16:08:29 +02:00
TomSweeneyRedHat
66c1e296e2 Add Security Policy
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-05-09 15:14:50 -04:00
Daniel J Walsh
d2c9645000
Merge pull request #207 from giuseppe/static-analysis
fuse-overlayfs: fix different issues reported by static analysis
2020-05-04 08:02:22 -04:00
Giuseppe Scrivano
77a4493db5
travis: run tests sequentially
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-30 15:19:02 +02:00
Giuseppe Scrivano
f6262ed778
main: fix copy loop
fix potential infinite loop on a short read.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-30 15:13:32 +02:00
Giuseppe Scrivano
9b687001bb
main: fix signature for ovl_ioctl
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-30 15:13:31 +02:00
Giuseppe Scrivano
cb934ef871
main: delete dead code
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-30 15:13:30 +02:00
Giuseppe Scrivano
b947555f87
main: remove superflous check
pnode cannot be NULL.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-30 15:13:30 +02:00
Giuseppe Scrivano
33a3a7970e
main: avoid double free on cleanup
the cleanup_node_init label already takes care of it.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-30 15:13:29 +02:00
Giuseppe Scrivano
83ae5cc252
tests/unlink.sh: make sure directories are empty
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-30 15:13:28 +02:00
Daniel J Walsh
60167adad7
Merge pull request #205 from giuseppe/fix-symlink-mtime
main: fix set mtime for a symlink
2020-04-28 16:34:46 -04:00
Giuseppe Scrivano
5b271aa796
main: add check for malloc
Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
2020-04-25 13:43:00 +02:00
Giuseppe Scrivano
26e4226a41
main: fix set mtime for a symlink
Closes: https://github.com/containers/fuse-overlayfs/issues/204

Signed-off-by: Giuseppe Scrivano <giuseppe@scrivano.org>
2020-04-25 13:28:33 +02:00
Daniel J Walsh
e70b270460
Merge pull request #203 from giuseppe/use-openat2
main: use openat2 where available
2020-04-22 08:52:24 -04:00
Giuseppe Scrivano
e7051f874b
.travis.yml: use latest fuse release
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-22 09:11:28 +02:00
Giuseppe Scrivano
fb8eb3300e
main: use openat2 where available
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-21 18:33:33 +02:00
Daniel J Walsh
f040ab0343
Merge pull request #202 from giuseppe/accept-ro
main.c: accept "ro" as a mount option
2020-04-20 06:43:24 -04:00
Giuseppe Scrivano
dd985bccba
main.c: accept "ro" as a mount option
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-20 12:28:53 +02:00
Giuseppe Scrivano
4f1d0cdd02
Merge pull request #201 from eamsden/eamsden/fix-cross-compile
Fix cross compilation
2020-04-18 13:10:02 +02:00
Daniel J Walsh
ad7e6cdfa2
Merge pull request #200 from giuseppe/tag-1.0
fuse-overlays: release 1.0.0
2020-04-18 06:14:34 -04:00
Edward Amsden
f7f103a538
Fix cross compilation 2020-04-17 11:50:58 -04:00
Giuseppe Scrivano
561d0287dc
fuse-overlays: release 1.0.0
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
v1.0.0
2020-04-17 11:10:44 +02:00
Daniel J Walsh
1a5b202866
Merge pull request #199 from giuseppe/fix-armv7h
fuse-overlayfs: add missing definitions for _FILE_OFFSET_BITS
2020-04-15 07:15:07 -04:00
Giuseppe Scrivano
7c0629a3a5
travis.yml: fix build
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-15 12:36:26 +02:00
Giuseppe Scrivano
f787603a30
fuse-overlayfs: add missing definitions for _FILE_OFFSET_BITS
it caused an issue on armv7h where different versions of dirent struct
were used in main.c and in the other files.

Regression introduced with c2c2ac5b82fb59322da227d196214b4a58ede634

Closes: https://github.com/containers/fuse-overlayfs/issues/197

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-04-15 10:18:30 +02:00
Giuseppe Scrivano
5f666c1e67
Merge pull request #196 from giuseppe/tag-0.7.8
configure.ac, NEWS: tag 0.7.8
2020-03-17 16:58:32 +01:00
Giuseppe Scrivano
f55aa8ef56
configure.ac, NEWS: tag 0.7.8
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
v0.7.8
2020-03-17 12:27:58 +01:00
Daniel J Walsh
6cb22ea674
Merge pull request #194 from giuseppe/correct-nlink-dirs
main: drop nlink optimization
2020-03-16 10:23:52 -04:00
Daniel J Walsh
4b97cf9ee6
Merge pull request #195 from giuseppe/no-read-fd
main: stop ino lookup without an open fd
2020-03-16 10:22:24 -04:00
Giuseppe Scrivano
f703870668
main: drop nlink optimization
calculate the nlink for the directory on each stat.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-03-16 11:54:39 +01:00
Giuseppe Scrivano
e63c9b133d
main: stop ino lookup without an open fd
stop the lookup for the dev/ino if there is not an ino open as it also
prevents reading the origin xattr.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-03-16 11:36:55 +01:00
Daniel J Walsh
da13832baa
Merge pull request #191 from giuseppe/delete-dir-before-rename-no-overwrite
main, rename: make sure destination is deleted
2020-03-03 13:32:35 -05:00
Giuseppe Scrivano
8f15388c6f
configure.ac: tag 0.7.7
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
v0.7.7
2020-03-03 16:50:17 +01:00
Giuseppe Scrivano
9660aaed2f
main: preserve errno for create_directory
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-03-03 16:50:16 +01:00
Giuseppe Scrivano
47218d09ab
main, rename: make sure destination is deleted
before doing a rename(2) make sure the destination is cleaned up,
otherwise a left-over directory can cause the rename to fail with
EEXIST.

Closes: https://github.com/containers/fuse-overlayfs/issues/189

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-03-03 16:50:15 +01:00
Giuseppe Scrivano
6bf8a6cc95
travis.yml: fix build
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-03-03 16:50:15 +01:00
Giuseppe Scrivano
8b91e3fed3
Merge pull request #186 from rhatdan/debug
Add support for debug to match help
2020-02-19 15:46:07 +01:00
Daniel J Walsh
14b1e91521
Add support for debug to match help
The help message that is printed does not match reality for the command line.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-02-18 11:09:12 -05:00
Giuseppe Scrivano
8bba496f08
Merge pull request #180 from TomSweeneyRedHat/coc
Add Code of Conduct
2020-02-10 14:20:36 +01:00
TomSweeneyRedHat
1d8a4e751d Add Code of Conduct
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-02-08 17:24:56 -05:00
Daniel J Walsh
ce61c7e955
Merge pull request #179 from giuseppe/tag-076
configure.ac: tag 0.7.6
v0.7.6
2020-02-03 09:23:46 -05:00
Giuseppe Scrivano
f3f7218bd1
configure.ac: tag 0.7.6
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-02-03 12:48:15 +01:00
Daniel J Walsh
9266fca93d
Merge pull request #178 from giuseppe/not-override-ino
main: lookup skip ino if there is no origin
2020-01-31 09:36:44 -06:00
Giuseppe Scrivano
47cc3c2475
utils: on ENXIO access the path
Closes: https://github.com/containers/fuse-overlayfs/issues/176

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-01-31 15:39:42 +01:00
Giuseppe Scrivano
f8b554aa9a
main: lookup skip ino if there is no origin
if there is no origin xattr specified, do not overwrite the ino
number.

Closes: https://github.com/containers/fuse-overlayfs/issues/177

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-01-31 15:39:41 +01:00
Giuseppe Scrivano
1874c5e9ce
.travis.yml: update golang
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-01-31 15:39:40 +01:00
Daniel J Walsh
907614553d
Merge pull request #172 from giuseppe/do-not-expose-opaque
listxattr/getxattr: do not access private xattrs
2020-01-17 16:59:27 -05:00
Giuseppe Scrivano
99d49d54ae
release: tag 0.7.5
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
v0.7.5
2020-01-17 22:02:54 +01:00
Giuseppe Scrivano
8a7508ed40
utils: retry on temporary close failures
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-01-17 22:02:53 +01:00
Giuseppe Scrivano
d4a957dea9
main: use the rename version when setting opaque
so that it can be correctly set on the directory before renaming it.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-01-17 22:01:17 +01:00