Commit Graph

27648 Commits

Author SHA1 Message Date
Chris Evich 8ef57ee3d7
Update to F34 and U2104
Also modernize main library to resemble what's used in other
containers-org repositories.  Lastly, update hack/get_ci_vm.sh to use
the new shared container image.

Signed-off-by: Chris Evich <cevich@redhat.com>
2021-05-11 14:25:24 -04:00
Daniel J Walsh 8583ab61ae
Merge pull request #893 from containers/dependabot/go_modules/github.com/opencontainers/runc-1.0.0-rc94
build(deps): bump github.com/opencontainers/runc from 1.0.0-rc93 to 1.0.0-rc94
2021-05-11 14:11:31 -04:00
dependabot[bot] 61798a81be
build(deps): bump github.com/opencontainers/runc
Bumps [github.com/opencontainers/runc](https://github.com/opencontainers/runc) from 1.0.0-rc93 to 1.0.0-rc94.
- [Release notes](https://github.com/opencontainers/runc/releases)
- [Commits](https://github.com/opencontainers/runc/compare/v1.0.0-rc93...v1.0.0-rc94)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-11 06:14:56 +00:00
Daniel J Walsh 053c575008
Merge pull request #892 from nalind/bananas
TestMatch: handle cases where NewPatternMatcher catches syntax errors
2021-05-09 06:11:03 -04:00
Nalin Dahyabhai 2d7dd01618 TestMatch: handle cases where NewPatternMatcher catches syntax errors
With Go 1.16 and later, pkg/fileutils.NewPatternMatcher() will flag
patterns with bad syntax immediately.  With older compilers, it would
have returned a matcher object which flagged syntax errors only when the
matcher was actually used to check a path.  Update tests to accept
either behavior.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2021-05-07 16:51:05 -04:00
Daniel J Walsh 6c15b7472b
Merge pull request #891 from rhatdan/version
Bump to v1.30.2
2021-05-07 10:40:17 -04:00
Daniel J Walsh b75f92972f
Move v1.30.2-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-05-07 10:38:44 -04:00
Daniel J Walsh ce5e31363d
Bump v1.30.2
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-05-07 10:38:31 -04:00
Daniel J Walsh b64e13a1af
Merge pull request #889 from nalind/json-iterator
Switch from ffjson to json-iterator
2021-05-07 05:47:55 -04:00
Nalin Dahyabhai 5ef1e9d68b Use json-iterator instead of encoding/json
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2021-05-06 12:24:24 -04:00
Nalin Dahyabhai 4e3bb7e95f Remove dependencies on ffjson
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2021-05-06 12:04:23 -04:00
Daniel J Walsh b2a44b060d
Merge pull request #887 from rhatdan/rootless
Expand Variables on rootlessStoragePath
2021-05-06 06:01:11 -04:00
Daniel J Walsh 98384ff1ca
Expand Variables on rootlessStoragePath
The current code was hanging for me, this makes sure the path is
expanded properly when it is read.

Fixes: https://github.com/containers/podman/issues/10181

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-05-05 13:49:51 -04:00
Daniel J Walsh 0072fc4a8d
Merge pull request #885 from rhatdan/driver
Log expected rootless overlay mount failures as debug level
2021-04-30 16:08:09 -04:00
Daniel J Walsh c36df2f045
Log expected rootless overlay mount failures as debug level
Most linux kernels do not support overlay mounts in rootless mode,
we should not be reporting this as an error, but drop it to debug
level.

Fixes: https://github.com/containers/podman/issues/10153

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-04-28 08:46:57 -04:00
Daniel J Walsh 0bc603e443
Merge pull request #884 from rhatdan/version
Bump to v1.30.1
2021-04-28 08:18:50 -04:00
Daniel J Walsh dd8f5c13b2
Move to v1.30.2-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-04-28 08:17:54 -04:00
Daniel J Walsh 5ce8c49b2d
Bump to v1.30.1
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-04-28 08:17:42 -04:00
Daniel J Walsh 86fe37893a
Merge pull request #881 from rhatdan/selinux
Allow users to tag images in read/only image stores
2021-04-28 08:15:45 -04:00
Daniel J Walsh 1ced4ef443
Merge pull request #883 from containers/dependabot/go_modules/github.com/klauspost/compress-1.12.2
build(deps): bump github.com/klauspost/compress from 1.12.1 to 1.12.2
2021-04-28 06:10:51 -04:00
dependabot[bot] 22601cbfa9
build(deps): bump github.com/klauspost/compress from 1.12.1 to 1.12.2
Bumps [github.com/klauspost/compress](https://github.com/klauspost/compress) from 1.12.1 to 1.12.2.
- [Release notes](https://github.com/klauspost/compress/releases)
- [Changelog](https://github.com/klauspost/compress/blob/master/.goreleaser.yml)
- [Commits](https://github.com/klauspost/compress/compare/v1.12.1...v1.12.2)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-28 07:51:06 +00:00
Daniel J Walsh 9668bf7d3f
Allow users to tag images in read/only image stores
Fixes:  https://github.com/containers/podman/issues/9412

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-04-27 16:40:10 -04:00
Daniel J Walsh 620590f3a4
Merge pull request #879 from rhatdan/selinux
Validate selinux label before attempting to use it
2021-04-26 08:17:39 -04:00
Daniel J Walsh 2a41e31d84
Validate selinux label before attempting to use it
Certain platforms might not have container_file_t defined, so we need to
check if the label is defined before attempting to use it.

Discussion is going on in: https://github.com/containers/podman/issues/9682

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-04-22 06:38:46 -04:00
Daniel J Walsh ba92da0031
Merge pull request #878 from rhatdan/version
Bump to v1.30.0
2021-04-20 06:24:44 -04:00
Daniel J Walsh bad98ff26c
Move to v1.30.1-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-04-20 06:23:11 -04:00
Daniel J Walsh 6a0a2b8119
Bump to v1.30.0
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-04-20 06:22:59 -04:00
Daniel J Walsh 8f31414bee
Merge pull request #877 from giuseppe/add-function-to-check-for-CAP_SYS_ADMIN
unshare: new function HasCapSysAdmin
2021-04-20 06:18:56 -04:00
Giuseppe Scrivano edf765f614
unshare: new function HasCapSysAdmin
add a function to check whether the current process has the
CAP_SYS_ADMIN capability in its effective capabilities set.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2021-04-19 19:18:14 +02:00
Daniel J Walsh 29560b37ab
Merge pull request #874 from mrostecki/btrfs-fix-quota
btrfs: Do not disable quota on cleanup
2021-04-15 12:52:53 -04:00
Daniel J Walsh 7cc75c3426
Merge pull request #876 from containers/dependabot/go_modules/github.com/klauspost/compress-1.12.1
build(deps): bump github.com/klauspost/compress from 1.11.13 to 1.12.1
2021-04-15 12:52:35 -04:00
Michal Rostecki 382ba6e055 btrfs: Do not disable quota on cleanup
Before this change, cleanup of the btrfs driver (occuring on each driver
shutdown) resulted in disabling quotas. It was done with an assumption
that quotas can be enabled or disabled on a subvolume level, which is
not true - enabling or disabling quota is always done on a filesystem
level.

That was leading to disabling quota on btrfs filesystems on btrfs driver
shutdown.

This change fixes that behavior and removes misleading `subvol` prefix
from functions and methods which set up quota (on a filesystem level).

Ref: moby/moby#34593
Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
2021-04-15 10:44:47 +01:00
dependabot[bot] 18e778b49a
build(deps): bump github.com/klauspost/compress from 1.11.13 to 1.12.1
Bumps [github.com/klauspost/compress](https://github.com/klauspost/compress) from 1.11.13 to 1.12.1.
- [Release notes](https://github.com/klauspost/compress/releases)
- [Changelog](https://github.com/klauspost/compress/blob/master/.goreleaser.yml)
- [Commits](https://github.com/klauspost/compress/compare/v1.11.13...v1.12.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-15 07:49:33 +00:00
Daniel J Walsh 41d901c937
Merge pull request #875 from rhatdan/version
Bump to v1.29.0
2021-04-12 09:04:12 -04:00
Daniel J Walsh 1fffd79cbe
Move to v1.29.1-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-04-12 09:03:26 -04:00
Daniel J Walsh 94bf2c9774
Bump to v1.29.0
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-04-12 09:03:16 -04:00
Daniel J Walsh 6a7e2561cd
Merge pull request #867 from rhatdan/reload
ReloadConfigurationFile should Reset storage options
2021-04-12 08:59:57 -04:00
Daniel J Walsh c12c9e28f4
ReloadConfigurationFile should Reset storage options
Currently in Podman if we reset the CONTAINERS_STORAGE_CONF path, we get
the graph driver options from the original config file as well as the
options from the override path. This PR resets the storageconf to the
initial state when called multiple times.

Also if user sets STORAGE_OPTS="" then we should use it to override all
other storage options.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-04-12 06:13:44 -04:00
Daniel J Walsh 5dc72564a3
Merge pull request #795 from ktock/additional-layer-store
Support additional layer store (patch for containers/storage)
2021-04-08 06:12:51 -04:00
Daniel J Walsh ea49282c21
Merge pull request #873 from containers/dependabot/go_modules/github.com/Microsoft/hcsshim-0.8.16
build(deps): bump github.com/Microsoft/hcsshim from 0.8.15 to 0.8.16
2021-04-08 06:12:22 -04:00
Valentin Rothberg c54ada0fc7
Merge pull request #872 from giuseppe/use-user-xattr-for-unprivileged-overlay
rootless overlay: use user.* instead of trusted.*
2021-04-08 11:10:57 +02:00
dependabot[bot] e9a63b2f88
build(deps): bump github.com/Microsoft/hcsshim from 0.8.15 to 0.8.16
Bumps [github.com/Microsoft/hcsshim](https://github.com/Microsoft/hcsshim) from 0.8.15 to 0.8.16.
- [Release notes](https://github.com/Microsoft/hcsshim/releases)
- [Commits](https://github.com/Microsoft/hcsshim/compare/v0.8.15...v0.8.16)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-08 07:50:12 +00:00
ktock 64f018103e Support additional layer store
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
2021-04-07 17:53:36 +09:00
Giuseppe Scrivano 345bc79f84
overlay, rootless: use user.* instead of trusted.*
unprivileged users cannot use the trusted.* xattrs.  Since for
rootless we always mount overlay with userxattr, we can just check if
running in rootless mode and use user.* instead of trusted.*.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2021-04-06 17:10:25 +02:00
Giuseppe Scrivano 9bf64bb716
archive, rootless: use user.* instead of trusted.*
unprivileged users cannot use the trusted.* xattrs.  Since for
rootless we always mount overlay with userxattr, we can just check if
running in rootless mode and use user.* instead of trusted.*.

Closes: https://github.com/containers/podman/issues/9936

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2021-04-06 17:10:24 +02:00
Giuseppe Scrivano 4821b98b8a
copy, rootless: skip copying trusted.* xattr
unprivileged users cannot use the trusted.* xattrs.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2021-04-06 16:55:18 +02:00
Giuseppe Scrivano f21e201f59
Merge pull request #871 from rhatdan/userxattr
Make sure rootless mounts support the userxattr flag
2021-04-06 09:39:08 +02:00
Daniel J Walsh f243ef010d
Make sure rootless mounts support the userxattr flag
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-04-05 16:00:28 -04:00
Daniel J Walsh 6d7a4b560f
Merge pull request #856 from likan999/fix-852
Rework autons ID mapping generation.
2021-04-05 07:10:35 -04:00
Kan Li c9bcfd8a5f Rework autons ID mapping generation.
This implements the algorithm proposed in
https://github.com/containers/storage/issues/852#issuecomment-798954173,
which is:
1. find available IDs from subuid/subgid file; by subtracting the used
   IDs (from other containers) as well as additional IDs, we get the IDs
   available to allocate;
2. target ID range is [0, requestedSize), subtract the additional IDs;
3. allocate IDs from range in step 1; the number to allocate is the
   number of IDs in step 2;
4. generate a mapping from IDs in step 3 to the ones in step 2.

Closes: https://github.com/containers/storage/issues/852

Signed-off-by: Kan Li <likan@google.com>
2021-04-03 13:22:23 -07:00