Compare commits
6 Commits
Author | SHA1 | Date |
---|---|---|
|
9347a39c27 | |
|
717fb39c46 | |
|
e6acd4302c | |
|
7dbd71040a | |
|
ba57a9fe92 | |
|
4c0c3f0b97 |
|
@ -6,7 +6,7 @@ env:
|
||||||
#### Global variables used for all tasks
|
#### Global variables used for all tasks
|
||||||
####
|
####
|
||||||
# Name of the ultimate destination branch for this CI run, PR or post-merge.
|
# Name of the ultimate destination branch for this CI run, PR or post-merge.
|
||||||
DEST_BRANCH: "main"
|
DEST_BRANCH: "release-1.39"
|
||||||
GOPATH: "/var/tmp/go"
|
GOPATH: "/var/tmp/go"
|
||||||
GOSRC: "${GOPATH}/src/github.com/containers/buildah"
|
GOSRC: "${GOPATH}/src/github.com/containers/buildah"
|
||||||
GOCACHE: "/tmp/go-build"
|
GOCACHE: "/tmp/go-build"
|
||||||
|
|
|
@ -2,6 +2,11 @@
|
||||||
|
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v1.39.1 (2025-02-25)
|
||||||
|
|
||||||
|
chroot createPlatformContainer: use MS_REMOUNT
|
||||||
|
chore(deps): update module github.com/go-jose/go-jose/v4 to v4.0.5 [security]
|
||||||
|
|
||||||
## v1.39.0 (2025-01-31)
|
## v1.39.0 (2025-01-31)
|
||||||
|
|
||||||
Bump c/storage v1.57.1, c/image 5.34.0, c/common v0.62.0
|
Bump c/storage v1.57.1, c/image 5.34.0, c/common v0.62.0
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
- Changelog for v1.39.1 (2025-02-25)
|
||||||
|
|
||||||
|
* chroot createPlatformContainer: use MS_REMOUNT
|
||||||
|
* chore(deps): update module github.com/go-jose/go-jose/v4 to v4.0.5 [security]
|
||||||
|
|
||||||
- Changelog for v1.39.0 (2025-01-31)
|
- Changelog for v1.39.0 (2025-01-31)
|
||||||
* Bump c/storage v1.57.1, c/image 5.34.0, c/common v0.62.0
|
* Bump c/storage v1.57.1, c/image 5.34.0, c/common v0.62.0
|
||||||
* Update module github.com/containers/storage to v1.57.0
|
* Update module github.com/containers/storage to v1.57.0
|
||||||
|
|
|
@ -263,7 +263,7 @@ func createPlatformContainer(options runUsingChrootExecSubprocOptions) error {
|
||||||
return fmt.Errorf("changing to host root directory: %w", err)
|
return fmt.Errorf("changing to host root directory: %w", err)
|
||||||
}
|
}
|
||||||
// make sure we only unmount things under this tree
|
// make sure we only unmount things under this tree
|
||||||
if err := unix.Mount(".", ".", "bind", unix.MS_BIND|unix.MS_SLAVE|unix.MS_REC, ""); err != nil {
|
if err := unix.Mount(".", ".", "bind", unix.MS_REMOUNT|unix.MS_BIND|unix.MS_SLAVE|unix.MS_REC, ""); err != nil {
|
||||||
return fmt.Errorf("tweaking mount flags on host root directory before unmounting from mount namespace: %w", err)
|
return fmt.Errorf("tweaking mount flags on host root directory before unmounting from mount namespace: %w", err)
|
||||||
}
|
}
|
||||||
// detach this (unnamed?) old directory
|
// detach this (unnamed?) old directory
|
||||||
|
|
|
@ -29,7 +29,7 @@ const (
|
||||||
// identify working containers.
|
// identify working containers.
|
||||||
Package = "buildah"
|
Package = "buildah"
|
||||||
// Version for the Package. Also used by .packit.sh for Packit builds.
|
// Version for the Package. Also used by .packit.sh for Packit builds.
|
||||||
Version = "1.39.0"
|
Version = "1.39.1"
|
||||||
|
|
||||||
// DefaultRuntime if containers.conf fails.
|
// DefaultRuntime if containers.conf fails.
|
||||||
DefaultRuntime = "runc"
|
DefaultRuntime = "runc"
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -71,7 +71,7 @@ require (
|
||||||
github.com/docker/docker-credential-helpers v0.8.2 // indirect
|
github.com/docker/docker-credential-helpers v0.8.2 // indirect
|
||||||
github.com/felixge/httpsnoop v1.0.4 // indirect
|
github.com/felixge/httpsnoop v1.0.4 // indirect
|
||||||
github.com/fsnotify/fsnotify v1.8.0 // indirect
|
github.com/fsnotify/fsnotify v1.8.0 // indirect
|
||||||
github.com/go-jose/go-jose/v4 v4.0.4 // indirect
|
github.com/go-jose/go-jose/v4 v4.0.5 // indirect
|
||||||
github.com/go-logr/logr v1.4.2 // indirect
|
github.com/go-logr/logr v1.4.2 // indirect
|
||||||
github.com/go-logr/stdr v1.2.2 // indirect
|
github.com/go-logr/stdr v1.2.2 // indirect
|
||||||
github.com/go-openapi/analysis v0.23.0 // indirect
|
github.com/go-openapi/analysis v0.23.0 // indirect
|
||||||
|
|
4
go.sum
4
go.sum
|
@ -116,8 +116,8 @@ github.com/fsnotify/fsnotify v1.8.0 h1:dAwr6QBTBZIkG8roQaJjGof0pp0EeF+tNV7YBP3F/
|
||||||
github.com/fsnotify/fsnotify v1.8.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
|
github.com/fsnotify/fsnotify v1.8.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
|
||||||
github.com/fsouza/go-dockerclient v1.12.0 h1:S2f2crEUbBNCFiF06kR/GvioEB8EMsb3Td/bpawD+aU=
|
github.com/fsouza/go-dockerclient v1.12.0 h1:S2f2crEUbBNCFiF06kR/GvioEB8EMsb3Td/bpawD+aU=
|
||||||
github.com/fsouza/go-dockerclient v1.12.0/go.mod h1:YWUtjg8japrqD/80L98nTtCoxQFp5B5wrSsnyeB5lFo=
|
github.com/fsouza/go-dockerclient v1.12.0/go.mod h1:YWUtjg8japrqD/80L98nTtCoxQFp5B5wrSsnyeB5lFo=
|
||||||
github.com/go-jose/go-jose/v4 v4.0.4 h1:VsjPI33J0SB9vQM6PLmNjoHqMQNGPiZ0rHL7Ni7Q6/E=
|
github.com/go-jose/go-jose/v4 v4.0.5 h1:M6T8+mKZl/+fNNuFHvGIzDz7BTLQPIounk/b9dw3AaE=
|
||||||
github.com/go-jose/go-jose/v4 v4.0.4/go.mod h1:NKb5HO1EZccyMpiZNbdUw/14tiXNyUJh188dfnMCAfc=
|
github.com/go-jose/go-jose/v4 v4.0.5/go.mod h1:s3P1lRrkT8igV8D9OjyL4WRyHvjB6a4JSllnOrmmBOA=
|
||||||
github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas=
|
github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas=
|
||||||
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
|
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
|
||||||
github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY=
|
github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY=
|
||||||
|
|
|
@ -997,3 +997,23 @@ _EOF
|
||||||
run_buildah ? bud --pull=false --layers .
|
run_buildah ? bud --pull=false --layers .
|
||||||
expect_output --substring -- "-c requires an argument"
|
expect_output --substring -- "-c requires an argument"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test "root fs only mounted once" {
|
||||||
|
if test `uname` != Linux ; then
|
||||||
|
skip "not meaningful except on Linux"
|
||||||
|
fi
|
||||||
|
_prefetch busybox
|
||||||
|
run_buildah from --pull=never --quiet busybox
|
||||||
|
cid="$output"
|
||||||
|
run_buildah run $cid cat /proc/self/mountinfo
|
||||||
|
echo "$output" > ${TEST_SCRATCH_DIR}/mountinfo1
|
||||||
|
echo "# mountinfo unfiltered:"
|
||||||
|
cat ${TEST_SCRATCH_DIR}/mountinfo1
|
||||||
|
grep ' / rw,' ${TEST_SCRATCH_DIR}/mountinfo1 > ${TEST_SCRATCH_DIR}/mountinfo2
|
||||||
|
echo "# mountinfo grepped:"
|
||||||
|
cat ${TEST_SCRATCH_DIR}/mountinfo2
|
||||||
|
wc -l < ${TEST_SCRATCH_DIR}/mountinfo2 > ${TEST_SCRATCH_DIR}/mountinfo3
|
||||||
|
echo "# mountinfo count:"
|
||||||
|
cat ${TEST_SCRATCH_DIR}/mountinfo3
|
||||||
|
assert $(cat ${TEST_SCRATCH_DIR}/mountinfo3) -eq 1
|
||||||
|
}
|
||||||
|
|
|
@ -7,9 +7,3 @@ When submitting code, please make every effort to follow existing conventions
|
||||||
and style in order to keep the code as readable as possible. Please also make
|
and style in order to keep the code as readable as possible. Please also make
|
||||||
sure all tests pass by running `go test`, and format your code with `go fmt`.
|
sure all tests pass by running `go test`, and format your code with `go fmt`.
|
||||||
We also recommend using `golint` and `errcheck`.
|
We also recommend using `golint` and `errcheck`.
|
||||||
|
|
||||||
Before your code can be accepted into the project you must also sign the
|
|
||||||
Individual Contributor License Agreement. We use [cla-assistant.io][1] and you
|
|
||||||
will be prompted to sign once a pull request is opened.
|
|
||||||
|
|
||||||
[1]: https://cla-assistant.io/
|
|
||||||
|
|
|
@ -9,14 +9,6 @@ Package jose aims to provide an implementation of the Javascript Object Signing
|
||||||
and Encryption set of standards. This includes support for JSON Web Encryption,
|
and Encryption set of standards. This includes support for JSON Web Encryption,
|
||||||
JSON Web Signature, and JSON Web Token standards.
|
JSON Web Signature, and JSON Web Token standards.
|
||||||
|
|
||||||
**Disclaimer**: This library contains encryption software that is subject to
|
|
||||||
the U.S. Export Administration Regulations. You may not export, re-export,
|
|
||||||
transfer or download this code or any part of it in violation of any United
|
|
||||||
States law, directive or regulation. In particular this software may not be
|
|
||||||
exported or re-exported in any form or on any media to Iran, North Sudan,
|
|
||||||
Syria, Cuba, or North Korea, or to denied persons or entities mentioned on any
|
|
||||||
US maintained blocked list.
|
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
The implementation follows the
|
The implementation follows the
|
||||||
|
@ -109,6 +101,6 @@ allows attaching a key id.
|
||||||
|
|
||||||
Examples can be found in the Godoc
|
Examples can be found in the Godoc
|
||||||
reference for this package. The
|
reference for this package. The
|
||||||
[`jose-util`](https://github.com/go-jose/go-jose/tree/v4/jose-util)
|
[`jose-util`](https://github.com/go-jose/go-jose/tree/main/jose-util)
|
||||||
subdirectory also contains a small command-line utility which might be useful
|
subdirectory also contains a small command-line utility which might be useful
|
||||||
as an example as well.
|
as an example as well.
|
||||||
|
|
|
@ -288,10 +288,11 @@ func ParseEncryptedCompact(
|
||||||
keyAlgorithms []KeyAlgorithm,
|
keyAlgorithms []KeyAlgorithm,
|
||||||
contentEncryption []ContentEncryption,
|
contentEncryption []ContentEncryption,
|
||||||
) (*JSONWebEncryption, error) {
|
) (*JSONWebEncryption, error) {
|
||||||
parts := strings.Split(input, ".")
|
// Five parts is four separators
|
||||||
if len(parts) != 5 {
|
if strings.Count(input, ".") != 4 {
|
||||||
return nil, fmt.Errorf("go-jose/go-jose: compact JWE format must have five parts")
|
return nil, fmt.Errorf("go-jose/go-jose: compact JWE format must have five parts")
|
||||||
}
|
}
|
||||||
|
parts := strings.SplitN(input, ".", 5)
|
||||||
|
|
||||||
rawProtected, err := base64.RawURLEncoding.DecodeString(parts[0])
|
rawProtected, err := base64.RawURLEncoding.DecodeString(parts[0])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -239,10 +239,10 @@ func (k *JSONWebKey) UnmarshalJSON(data []byte) (err error) {
|
||||||
keyPub = key
|
keyPub = key
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
err = fmt.Errorf("go-jose/go-jose: unknown curve %s'", raw.Crv)
|
return fmt.Errorf("go-jose/go-jose: unknown curve %s'", raw.Crv)
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
err = fmt.Errorf("go-jose/go-jose: unknown json web key type '%s'", raw.Kty)
|
return fmt.Errorf("go-jose/go-jose: unknown json web key type '%s'", raw.Kty)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -327,10 +327,11 @@ func parseSignedCompact(
|
||||||
payload []byte,
|
payload []byte,
|
||||||
signatureAlgorithms []SignatureAlgorithm,
|
signatureAlgorithms []SignatureAlgorithm,
|
||||||
) (*JSONWebSignature, error) {
|
) (*JSONWebSignature, error) {
|
||||||
parts := strings.Split(input, ".")
|
// Three parts is two separators
|
||||||
if len(parts) != 3 {
|
if strings.Count(input, ".") != 2 {
|
||||||
return nil, fmt.Errorf("go-jose/go-jose: compact JWS format must have three parts")
|
return nil, fmt.Errorf("go-jose/go-jose: compact JWS format must have three parts")
|
||||||
}
|
}
|
||||||
|
parts := strings.SplitN(input, ".", 3)
|
||||||
|
|
||||||
if parts[1] != "" && payload != nil {
|
if parts[1] != "" && payload != nil {
|
||||||
return nil, fmt.Errorf("go-jose/go-jose: payload is not detached")
|
return nil, fmt.Errorf("go-jose/go-jose: payload is not detached")
|
||||||
|
|
|
@ -369,7 +369,7 @@ github.com/fsnotify/fsnotify/internal
|
||||||
# github.com/fsouza/go-dockerclient v1.12.0
|
# github.com/fsouza/go-dockerclient v1.12.0
|
||||||
## explicit; go 1.22
|
## explicit; go 1.22
|
||||||
github.com/fsouza/go-dockerclient
|
github.com/fsouza/go-dockerclient
|
||||||
# github.com/go-jose/go-jose/v4 v4.0.4
|
# github.com/go-jose/go-jose/v4 v4.0.5
|
||||||
## explicit; go 1.21
|
## explicit; go 1.21
|
||||||
github.com/go-jose/go-jose/v4
|
github.com/go-jose/go-jose/v4
|
||||||
github.com/go-jose/go-jose/v4/cipher
|
github.com/go-jose/go-jose/v4/cipher
|
||||||
|
|
Loading…
Reference in New Issue