502 Commits

Author SHA1 Message Date
Giuseppe Scrivano
94ee6dce22
NEWS: tag v1.1.1
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-06-20 21:13:59 +02:00
Giuseppe Scrivano
1d8f4b529d
main: fix lookup for overflow uid
we were mistakenly using the overflow GID also for UIDs lookups.  Not
a big issue as they usually have the same value.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-06-20 20:34:28 +02:00
Giuseppe Scrivano
0d985794d9
main: add error checks for workdir initialization
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-06-20 20:33:52 +02:00
Giuseppe Scrivano
74bbaf59df
Merge pull request #215 from giuseppe/fix-typo-NEWS
NEWS: fix typo
2020-06-18 09:16:01 +02:00
Giuseppe Scrivano
116d326fff
NEWS: fix typo
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
v1.1.0
2020-06-18 09:15:04 +02:00
Daniel J Walsh
8b4062db5c
Merge pull request #214 from giuseppe/mkdir-fix
mkdir: if the destination exists atomically swap them
2020-06-17 16:59:33 -04:00
Giuseppe Scrivano
d68235ff9b
configure.ac: tag 1.1.0
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-06-17 15:57:40 +02:00
Giuseppe Scrivano
f26f1f71ae
mkdir: if the destination exists atomically swap them
if the destination already exists as it could not be properly cleaned
up, attempt to atomically swap the two directories and free the old
one.

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

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-06-17 15:05:00 +02:00
Daniel J Walsh
f3e4154078
Merge pull request #212 from giuseppe/fix-check-set-xattr
main: correctly report copyup error
2020-05-26 16:43:41 -04:00
Giuseppe Scrivano
6d75146e29
main: correctly report copyup error
the copyup function returns the error code set in ret.  Make sure ret
has the correct return code if set_fd_origin fails.

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

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-05-26 22:20:15 +02:00
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