Commit Graph

795 Commits

Author SHA1 Message Date
dependabot-preview[bot] 6fbb4a9ed6 Bump github.com/onsi/gomega from 1.10.2 to 1.10.3
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.10.2 to 1.10.3.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.10.2...v1.10.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-10-13 05:36:18 -04:00
OpenShift Merge Robot dbf60f9e1a Merge pull request #323 from rhatdan/conmon
Fix description of no-common options for cgroups
2020-10-12 06:46:24 -04:00
Daniel J Walsh e2055b6dcc Fix description of no-common options for cgroups
The current description is wrong it says that no-common does
not use cgrous, when it should say there is no cgroup
created for the conmon process.

Fixes: https://github.com/containers/common/issues/321

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-10-09 13:32:04 -04:00
Daniel J Walsh 772f82e3e3 Merge pull request #322 from rhatdan/VERSION
Bump to v0.25.0
2020-10-09 11:35:09 -04:00
Daniel J Walsh 016b2e4cd0 Move to v0.25.1-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-10-09 11:34:05 -04:00
Daniel J Walsh a909d821f7 Bump to v0.25.0
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-10-09 11:33:43 -04:00
OpenShift Merge Robot 97edf592c0 Merge pull request #320 from rhatdan/formats
Move buildah/pkg/formats to common/pkg/formats
2020-10-09 11:32:26 -04:00
Daniel J Walsh 02dc7d04d4 Move buildah/pkg/formats to common/pkg/formats
We want to use pkg/formats within skopeo, but
do not want to pull buildah code in.  Moving this
to common would make the vendoring easier.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-10-09 10:38:54 -04:00
OpenShift Merge Robot 5e16b64f3d Merge pull request #319 from rhatdan/VERSION
Specify the recommended defaults for security
2020-10-09 06:31:36 -04:00
Daniel J Walsh 970a4ebdfc Specify the recommended defaults for security
In Fedora Rawhide, I have eliminated some CAPABILITIES from the
default list to make containers more secure. The containers.conf
should be listed here as well.  The default list in code is still
the Docker defaults, but I have eliminated three from the default
list

AUDIT_WRITE, MKNOD, NET_RAW

In Fedora 33 we have eliminated just MKNOD and NET_RAW.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-10-06 13:29:18 -04:00
Daniel J Walsh f01bca7b6b Merge pull request #318 from rhatdan/VERSION
Bump to v0.24.0
2020-10-01 05:39:15 -04:00
Daniel J Walsh 26ad04df33 Move to v0.24.1-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-10-01 05:38:44 -04:00
Daniel J Walsh 860d00c30e Bump to v0.24.0
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-10-01 05:34:57 -04:00
OpenShift Merge Robot 1e42196fc9 Merge pull request #317 from containers/dependabot/go_modules/github.com/sirupsen/logrus-1.7.0
Bump github.com/sirupsen/logrus from 1.6.0 to 1.7.0
2020-09-30 11:42:55 +00:00
OpenShift Merge Robot 03dce4de66 Merge pull request #316 from Luap99/autocomplete-CAP-SUBID
Add shared autocomplete functions for podman/buildah
2020-09-29 09:58:21 +00:00
dependabot-preview[bot] 3dd99a2ac1 Bump github.com/sirupsen/logrus from 1.6.0 to 1.7.0
Bumps [github.com/sirupsen/logrus](https://github.com/sirupsen/logrus) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/sirupsen/logrus/releases)
- [Changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sirupsen/logrus/compare/v1.6.0...v1.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-09-29 05:54:44 -04:00
Paul Holzinger 8af70b14e9 Add shared autocomplete functions for podman/buildah
Both podman and buildah can use these completion functions.
In order to prevent duplication lets define them here.

The new automplete functions are:
- AutocompleteSubuidName
- AutocompleteSubgidName
- AutocompleteCapabilities

Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
2020-09-29 11:46:57 +02:00
Daniel J Walsh 5d482ff1c5 Merge pull request #315 from rhatdan/VERSION
Bump to v0.23.0
2020-09-24 05:47:24 -04:00
Daniel J Walsh 271649a342 Move to v0.23.1-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-09-24 05:46:32 -04:00
Daniel J Walsh d7faa41b1c Bump to v0.23.0
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-09-24 05:46:32 -04:00
OpenShift Merge Robot 873732f892 Merge pull request #314 from Luap99/podman-autocompletion
Shell Completion with cobra for login/logout flags
2020-09-22 09:30:52 +00:00
OpenShift Merge Robot 7d249d0d50 Merge pull request #311 from rhatdan/conf
Allow users to specify the default format for image builds
2020-09-21 16:27:02 -04:00
Daniel J Walsh d2c4ee7ce3 Allow users to specify the default format for image builds
Some users want to stick to "docker" format escecially since some older
container registries don't properly support OCI images.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-09-21 16:13:48 -04:00
OpenShift Merge Robot c8220e7fd7 Merge pull request #313 from rhatdan/fchmodat2
remove fchmodat2 from seccomp.json file
2020-09-21 10:15:37 -04:00
Paul Holzinger 08f65cc609 Shell Completion with cobra for login/logout flags
The PR containers/podman#6442 enables a new way to create
shell completions scripts. The shell completion is handled
by cobra and since the login/logout flags are defined here
the completion functions for this should be defined here
as well. For Reference see:
https://github.com/spf13/cobra/blob/master/shell_completions.md

I added a unit test to ensure that the flags have a
completion function set.

This could also be used by skopeo and buildah if
someone wants to implement such completions for them.

Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
2020-09-21 15:12:30 +02:00
Daniel J Walsh 47ef35244c remove fchmodat2 from seccomp.json file
This syscall is proposed for the kernel but does not exists yet.  Having it in
the default syscall table is causing crun to print warning messages.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-09-21 07:57:43 -04:00
OpenShift Merge Robot 0ddca34c49 Merge pull request #312 from rhatdan/conn
Add support for CONTAINER_CONNECTION environment variable
2020-09-18 03:18:42 -04:00
Daniel J Walsh 00631f7fa2 Add support for CONTAINER_CONNECTION environment variable
Users on the MAC have pointed out that they could have multiple connections
to different servers, and they asked to be able to specify the connection
name via environmnet variable rather then to always have to specify the
connection on the command line if they did not want to use the default
setting.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-09-16 07:06:04 -04:00
Daniel J Walsh d6cb241bed Merge pull request #310 from containers/dependabot/go_modules/github.com/containers/image/v5-5.6.0
Bump github.com/containers/image/v5 from 5.5.2 to 5.6.0
2020-09-15 15:50:33 -04:00
dependabot-preview[bot] 5ea76e34fc Bump github.com/containers/image/v5 from 5.5.2 to 5.6.0
Bumps [github.com/containers/image/v5](https://github.com/containers/image) from 5.5.2 to 5.6.0.
- [Release notes](https://github.com/containers/image/releases)
- [Commits](https://github.com/containers/image/compare/v5.5.2...v5.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-09-15 06:08:00 -04:00
OpenShift Merge Robot e824610e92 Merge pull request #308 from rhatdan/VERSION
Fix problems found by codespell
2020-09-13 16:52:59 -04:00
OpenShift Merge Robot 03032a3e9e Merge pull request #309 from rhatdan/pidfd
Allow pidfd_getfd by default in seccomp.json
2020-09-13 13:46:41 -04:00
Daniel J Walsh d3e2a9fb55 Allow pidfd_getfd by default in seccomp.json
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-09-12 07:44:52 -04:00
Daniel J Walsh fd6f9bf750 Fix problems found by codespell
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-09-12 05:50:05 -04:00
Daniel J Walsh a3a0f87c00 Merge pull request #307 from rhatdan/VERSION
Bump to v0.22.0
2020-09-11 09:31:10 -04:00
Daniel J Walsh 4b6800b16f Move to v0.22.1-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-09-11 09:29:28 -04:00
Daniel J Walsh dc36ecf2d7 Bump to v0.22.0
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-09-11 09:29:28 -04:00
OpenShift Merge Robot ec977cfa6d Merge pull request #306 from rhatdan/seccomp
Add new syscalls to allowed seccomp.json
2020-09-11 08:33:44 -04:00
Daniel J Walsh 746c707914 Add new syscalls to allowed seccomp.json
faccessat2, openat2, fchmodat2 are all new syscalls to help eliminate
race conditions, current containers get the older versions of these syscalls
so adding them by default makes sense.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-09-11 07:11:16 -04:00
Daniel J Walsh 46d34d7c75 Merge pull request #305 from containers/dependabot/go_modules/github.com/containers/storage-1.23.5
Bump github.com/containers/storage from 1.23.4 to 1.23.5
2020-09-11 07:01:04 -04:00
dependabot-preview[bot] 89b1e95e53 Bump github.com/containers/storage from 1.23.4 to 1.23.5
Bumps [github.com/containers/storage](https://github.com/containers/storage) from 1.23.4 to 1.23.5.
- [Release notes](https://github.com/containers/storage/releases)
- [Changelog](https://github.com/containers/storage/blob/master/docs/containers-storage-changes.md)
- [Commits](https://github.com/containers/storage/compare/v1.23.4...v1.23.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-09-11 06:17:07 -04:00
Valentin Rothberg 8015f7ef72 Merge pull request #304 from QiWang19/valid-policy
ValidatePullPolicy case-insensitive
2020-09-11 11:14:48 +02:00
Qi Wang f1c4d645f6 ValidatePullPolicy case-insensitive
Set pullpolicy case-insensitive for fixing https://github.com/containers/podman/issues/7246. And replce the duplicate code in podman with c/common code.

Signed-off-by: Qi Wang <qiwan@redhat.com>
2020-09-10 17:05:35 -04:00
Daniel J Walsh 04041034b2 Merge pull request #294 from rhatdan/seccomp
Update default seccomp rules to match fedora rules
2020-09-10 07:24:41 -04:00
Daniel J Walsh 826c76f723 Update default seccomp rules to match fedora rules
Add the following default syscalls:
"clock_adjtime"  --  Already allow adjtimex
"clone"          --  Needed so we can use a usernamespace within a container.
                     Since this is allowed for non root users, it should be safe
                     to use, and can allow us to support containers/user namespaces
                     within locked down containers.
"pivot_root"     --  Can be used by containers within containers

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-09-09 15:32:50 -04:00
OpenShift Merge Robot f7dfbf3624 Merge pull request #302 from containers/dependabot/go_modules/github.com/onsi/gomega-1.10.2
Bump github.com/onsi/gomega from 1.10.1 to 1.10.2
2020-09-08 14:24:40 -04:00
Daniel J Walsh c3c1d320ce Bump github.com/onsi/gomega from 1.10.1 to 1.10.2
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.10.1 to 1.10.2.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](onsi/gomega@v1.10.1...v1.10.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-09-08 05:57:56 -04:00
OpenShift Merge Robot abce3892d1 Merge pull request #301 from containers/dependabot/go_modules/github.com/onsi/ginkgo-1.14.1
Bump github.com/onsi/ginkgo from 1.14.0 to 1.14.1
2020-09-07 07:12:26 -04:00
dependabot-preview[bot] 609861576d Bump github.com/onsi/ginkgo from 1.14.0 to 1.14.1
Bumps [github.com/onsi/ginkgo](https://github.com/onsi/ginkgo) from 1.14.0 to 1.14.1.
- [Release notes](https://github.com/onsi/ginkgo/releases)
- [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/ginkgo/compare/v1.14.0...v1.14.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-09-07 06:35:24 -04:00
OpenShift Merge Robot 63fb88e93e Merge pull request #300 from containers/dependabot/go_modules/github.com/containers/storage-1.23.4
Bump github.com/containers/storage from 1.23.3 to 1.23.4
2020-09-06 06:46:11 -04:00