SHA256
1
0
forked from pool/apptainer
Commit Graph

29 Commits

Author SHA256 Message Date
7fca039621 Accepting request 1099922 from home:mslacken:pr
- update to 1.2.0 with following changes:
  * binary is built reproducible which disables plugins
  * Create the current working directory in a container when it doesn't exist.
    This restores behavior as it was before singularity 3.6.0. As a result,
    using --no-mount home won't have any effect when running apptainer from a
    home directory and will require --no-mount home,cwd to avoid mounting that
    directory.
  * Handle current working directory paths containing symlinks both on the host
    and in a container but pointing to different destinations. If detected, the
    current working directory is not mounted when the destination directory in
    the container exists.
  * Destination mount points are now sorted by shortest path first to ensure
    that a user bind doesn't override a previous bind path when set in
    arbitrary order on the CLI. This is also applied to image binds.
  * When the kernel supports unprivileged overlay mounts in a user namespace,
    the container will be constructed by default using an overlay instead of an
    underlay layout for bind mounts. A new --underlay action option can be used
    to prefer underlay instead of overlay.
  * sessiondir maxsize in apptainer.conf now defaults to 64 MiB for new
    installations. This is an increase from 16 MiB in prior versions.
  * The apptainer cache is now architecture aware, so the same home directory
    cache can be shared by machines with different architectures.
  * Overlay is blocked on the panfs filesystem, allowing sandbox directories to
    be run from panfs without error.
  * Lookup and store user/group information in stage one prior to entering any
    namespaces, to fix an issue with winbind not correctly looking up
    user/group information when using user namespaces.
- New features / functionalities
  * Support for unprivileged encryption of SIF files using gocryptfs.  This is
    not compatible with privileged encryption, so containers encrypted by root

OBS-URL: https://build.opensuse.org/request/show/1099922
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=47
2023-07-24 09:11:01 +00:00
2d8f79afd3 Accepting request 1092892 from home:mslacken:pr
- update to 1.1.9 with following changes:
  * Remove warning about unknown xino=on option from fuse-overlayfs, introduced
    in 1.1.8.
  * Ignore extraneous warning from fuse-overlayfs about a readonly /proc.
  * Fix dropped "n" characters on some platforms in definition file stored as
    part of SIF metadata.
  * Remove duplicated group ids.
  * Fix not being able to handle multiple entries in LD_PRELOAD when binding
    fakeroot into container during apptainer startup for --fakeroot with
    fakeroot command.

OBS-URL: https://build.opensuse.org/request/show/1092892
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=45
2023-07-17 13:21:03 +00:00
8a75af002a Accepting request 1083262 from home:mslacken:pr
- Included a fix for CVE-2023-30549 which is a vulnerability in setuid-root
  installations of Apptainer iwhich was not active in the recent openSUSE
  packages. Still this is included for completenss. The fix adds allow
  setuid-mount configuration options encrypted, squashfs, and extfs, and makes
  the default for extfs be "no". That disables the use of extfs mounts
  including for overlays or binds while in the setuid-root mode, while leaving
  it enabled for unprivileged user namespace mode. The default for encrypted
  and squashfs is "yes".
- Other bug fixes:
  * Fix loop device 'no such device or address' spurious errors when using shared
    loop devices.
  * Add xino=on mount option for writable kernel overlay mount points to fix
    inode numbers consistency after kernel cache flush (not applicable to
    fuse-overlayfs).

OBS-URL: https://build.opensuse.org/request/show/1083262
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=43
2023-04-27 13:15:28 +00:00
7bb312ce20 Accepting request 1075152 from home:mslacken:pr
- updated to 1.1.7 with following changes:
  * removed simpler-sif-building.patch as this was incoperated upstream
  * Allow gpu options such as --nv to be nested by always inheriting all
    libraries bound in to a parent container's /.singularity.d/libs.
  * Map the user's home directory to the root home directory by default in the
    non-subuid fakeroot mode like it was in the subuid fakeroot mode, for both
    action commands and building containers from definition files.
  * Make the error message more helpful in another place where a remote is
    found to have no library client.
  * Avoid incorrect error when requesting fakeroot network.
  * Pass computed LD_LIBRARY_PATH to wrapped unsquashfs. Fixes issues where
    unsquashfs on host uses libraries in non-default paths.

OBS-URL: https://build.opensuse.org/request/show/1075152
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=41
2023-03-29 09:40:23 +00:00
53e3453740 Accepting request 1070159 from home:mslacken:pr
add missing patch file

OBS-URL: https://build.opensuse.org/request/show/1070159
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=39
2023-03-08 11:29:33 +00:00
941ebe2ba8 Accepting request 1067602 from home:mslacken:pr
- added simple sif building for SLE systems via suseconnect-container
- added files: 
  * simpler-sif-building.patch
  * SLE-12SP5.def
  * leap.def

OBS-URL: https://build.opensuse.org/request/show/1067602
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=38
2023-03-08 11:24:27 +00:00
091195d665 Accepting request 1065996 from home:mslacken:pr
- update to 1.1.6 with following changes:
  * Included a fix for CVE-2022-23538 which potentially leaked user credentials
    to a third-party S3 storage service when using the library:// protocol. See
    the https://github.com/sylabs/scs-library-client/security/advisories/GHSA-7p8m-22h4-9pj7  
    for details.
  * Make PS1 environment variable changeable via %environment section on
    definition file that used to be only changeable via APPTAINERENV_PS1
    outside of container. This makes the container's prompt customizable.
  * Fix the passing of nested bind mounts when there are multiple binds
    separated by commas and some of them have colons separating sources and
    destinations.
  * Hide messages about SINGULARITY variables if corresponding APPTAINER
    variables are defined. Fixes a regression introduced in 1.1.4.
  * Print a warning if extra arguments are given to a shell action, and show in
    the run action usage that arguments may be passed.
  * Check for the existence of the runtime executable prefix, to avoid issues
    when running under Slurm's srun. If it doesn't exist, fall back to the
    compile-time prefix.
  * Increase the timeout on image driver (that is, FUSE) mounts from 2 seconds
    to 10 seconds. Instead, print an INFO message if it takes more than 2
    seconds.
  * If a remote is defined both globally (i.e. system-wide) and individually,
    change apptainer remote commands to print an info message instead of
    exiting with a fatal error and to give precedence to the individual
    configuration.

OBS-URL: https://build.opensuse.org/request/show/1065996
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=36
2023-02-15 17:10:14 +00:00
9b95ca2a59 Accepting request 1057746 from home:mslacken:pr
- Update to 1.1.5 with following changes:
  * Fix the use of fakeroot, faked, and libfakeroot.so if they are not suffixed
    by -sysv, as is for instance the case on Gentoo Linux.
  * Prevent the use of a --libexecdir or --bindir mconfig option from making
    apptainer think it was relocated and so preventing use of suid mode. The
    bug was introduced in v1.1.4.
  * Add helpful error message for build --remote option.
  * Add more helpful error message when no library endpoint found.
  * Avoid cleanup errors on exit when mountpoints are busy by doing a lazy
    unmount if a regular unmount doesn't work after 10 tries.
  * Make messages about using SINGULARITY variables less scary.

OBS-URL: https://build.opensuse.org/request/show/1057746
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=34
2023-01-12 14:10:06 +00:00
ddeb7e271c Accepting request 1044083 from home:mslacken:pr
- moved run dir from /var/lib/apptainer to /var/apptainer to be closer
  to upstream

OBS-URL: https://build.opensuse.org/request/show/1044083
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=32
2022-12-21 13:20:28 +00:00
23007d6375 Accepting request 1043930 from home:mslacken:pr
- Update to 1.1.4 with following changes:
  * Make the binaries built in the unprivileged apptainer package relocatable.
    When moving the binaries to a new location, the /usr at the top of some of
    the paths needs to be removed. Relocation is disallowed when the
    starter-suid is present, for security reasons.
  * Change the warning when an overlay image is not writable, introduced in
    v1.1.3, back into a (more informative) fatal error because it doesn't
    actually enter the container environment.
  * Set the --net flag if --network or --network-args is set rather than
    silently ignoring them if --net was not set.
  * Do not hang on pull from http(s) source that doesn't provide a content-length.
  * Avoid hang on fakeroot cleanup under high load seen on some distributions / kernels.
  * Remove obsolete pacstrap -d in Arch packer.
  * Adjust warning message for deprecated environment variables usage.
  * Enable the --security uid:N and --security gid:N options to work when run
    in non-suid mode. In non-suid mode they work with any user, not just root.
    Unlike with root and suid mode, however, only one gid may be set in
    non-suid mode.
- Changes from 1.1.3
  * Prefer the fakeroot-sysv command over the fakeroot command because the
    latter can be linked to either fakeroot-sysv or fakeroot-tcp, but
    fakeroot-sysv is much faster.
  * Update the included squashfuse_ll to have -o uid=N and -o gid=N options and
    changed the corresponding image driver to use them when available. This
    makes files inside sif files appear to be owned by the user instead of by
    the nobody id 65534 when running in non-setuid mode.
  * Fix the locating of shared libraries when running unsquashfs from a non-standard location.
  * Properly clean up temporary files if unsquashfs fails.
  * Fix the creation of missing bind points when using image binding with underlay.
  * Change the error when an overlay image is not writable into a warning that

OBS-URL: https://build.opensuse.org/request/show/1043930
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=30
2022-12-20 14:26:28 +00:00
c33ffffe8d Accepting request 1031909 from home:eeich:branches:network:cluster
- Add Provides: and Obsoletes: to attempt to mark this as a possible
  replacement for the original singularity package which has been
  discontinued.

OBS-URL: https://build.opensuse.org/request/show/1031909
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=28
2022-10-28 09:08:08 +00:00
ea6e868977 Accepting request 1009743 from home:mslacken:pr
addef fuse2fs as recommends and build also squashfuse_ll

OBS-URL: https://build.opensuse.org/request/show/1009743
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=26
2022-10-11 09:23:45 +00:00
260f631803 Accepting request 1009691 from home:mslacken:pr
- previous versions did not build squashfuse_ll, fixed this

OBS-URL: https://build.opensuse.org/request/show/1009691
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=25
2022-10-11 08:20:13 +00:00
8016c940db Accepting request 1008777 from home:mslacken:pr
- Udpated to 1.1.2 which fixed CVE-2022-39237
  * CVE-2022-39237: The sif dependency included in Apptainer before this
    release does not verify that the hash algorithm(s) used are
    cryptographically secure when verifying digital signatures. This release
    updates to sif v2.8.1 which corrects this issue. See the linked advisory
    for references and a workaround.

OBS-URL: https://build.opensuse.org/request/show/1008777
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=23
2022-10-07 12:44:28 +00:00
9032336fb9 Accepting request 1006622 from home:mslacken:pr
- updated to version 1.1.0 without changes to rc3

OBS-URL: https://build.opensuse.org/request/show/1006622
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=21
2022-09-28 12:08:38 +00:00
879ec698d0 Accepting request 1003468 from home:mslacken:pr
- Updated to version 1.1.0-rc3 with following changes:
  * added squashfuse-0.1.105.tar.gz and 70.patch for the build of squashfuse_ll
    which will be removed as soon as the multithread patch is incoperated
  * Change squash mounts to prefer to use squashfuse_ll instead of squashfuse,
    if available, for improved performance. squashfuse_ll is not available
    in factory.
  * Also, for even better parallel performance, include a patched
    multithreaded version of squashfuse_ll in
  * Imply adding ${prefix}/libexec/apptainer/bin to the binary path in
    apptainer.conf, which is used for searching for helper executables. It is
    implied as the first directory of $PATH if present (which is at the
    beginning of binary path by default) or just as the first directory if
    $PATH is not included in binary path.
    ${prefix}/libexec/apptainer/bin.
  * Add --unsquash action flag to temporarily convert a SIF file to a sandbox
    before running. In previous versions this was the default when running a
    SIF file without setuid or with fakeroot, but now the default is to instead
    mount with squashfuse.
  * Add --sparse flag to overlay create command to allow generation of a sparse
    ext3 overlay image.
  * Support for a custom hashbang in the %test section of an Apptainer recipe
    (akin to the runscript and start sections).
  * When using fakeroot in setuid mode, have the image drivers first enter the
    the container's user namespace to avoid write errors with overlays.
  * Skip trying to use kernel overlayfs when using writable overlay and the
    lower layer is FUSE, because of a kernel bug introduced in kernel 5.15.
  * Add additional hidden options to the action command for testing different
    fakeroot modes with --fakeroot: --ignore-subuid, --ignore-fakeroot-command,
    and --ignore-userns.

OBS-URL: https://build.opensuse.org/request/show/1003468
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=19
2022-09-14 08:31:59 +00:00
b663e36b45 Accepting request 998137 from home:mslacken:pr
- Udpated to version 1.1.0-rc2 with following changes:
  * Fixed longstanding bug in the underlay logic when there are nested bind
    points separated by more than one path level, for example /var and
    /var/lib/yum, and the path didn't exist in the container image. The bug
    only caused an error when there was a directory in the container image that
    didn't exist on the host.
  * Improved wildcard matching in the %files directive of build definition
    files by replacing usage of sh with the mvdan.cc library.
  * Replaced checks for compatible filesystem types when using fuse-overlayfs
    with an INFO message when an incompatible filesystem type causes it to be
    unwritable by a fakeroot user.
  * The --nvccli option now works without --fakeroot. In that case the option
    can be used with --writable-tmpfs instead of --writable, and
    --writable-tmpfs is implied if neither option is given. Note that also
    /usr/bin has to be writable by the user, so without --fakeroot that
    probably requires a sandbox image that was built with --fix-perms.
  * The --nvccli option implies --nv.
  * Configure squashfuse to always show files to be owned by the current user.
    That's especially important for fakeroot to prevent most of the files from
    looking like they are owned by user 65534.
  * The fakeroot command can now be used even if $PATH is empty in the
    environment of the apptainer command.
  * Allow the newuidmap command to be missing if the current user is not listed
    in /etc/subuid.
  * Require the uidmap package in Debian packaging.
  * Improved error handling of unsupported pass protected PEM files with
    encrypted containers.
  * Ensure bootstrap_history directory is populated with previous definition
    files, present in source containers used in a build.
  * Add additional options to the build command for testing different fakeroot

OBS-URL: https://build.opensuse.org/request/show/998137
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=17
2022-08-19 10:14:39 +00:00
0aad0a2b68 Accepting request 993258 from home:mslacken:pr
* Added fix-32bit-compilation.patch from upstream

OBS-URL: https://build.opensuse.org/request/show/993258
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=15
2022-08-05 08:57:40 +00:00
2bf2146d97 Accepting request 993098 from home:mslacken:pr
- Updated to version 1.1.0-rc1 which enables apptainer to run without
  suid and additional groups. Although this is a prerelease this is 
  a major advantage justifying its use.
  * Added a squashfuse image driver that enables mounting SIF files without
    using setuid-root. Requires the squashfuse command and unprivileged user
    namespaces.
  * Added a fuse2fs image driver that enables mounting EXT3 files and EXT3 SIF
    overlay partitions without using setuid-root. Requires the fuse2fs command
    and unprivileged user namespaces.
  * Added the ability to use persistent overlay (--overlay) and
    --writable-tmpfs without using setuid-root. This requires unprivileged user
    namespaces and either a new enough kernel (>= 5.11) or the fuse-overlayfs
    command. Persistent overlay works when the overlay path points to a regular
    filesystem (known as "sandbox" mode, which is not allowed when in setuid
    mode), or when it points to an EXT3 image. Does not work with a SIF
    partition because that requires privileges to mount as an ext3 image.
  * Extended the --fakeroot option to be useful when /etc/subuid and
    /etc/subgid mappings have not been set up. If they have not been set up, a
    root-mapped unprivileged user namespace (the equivalent of unshare -r)
    and/or the fakeroot command from the host will be tried. Together they
    emulate the mappings pretty well but they are simpler to administer. This
    feature is especially useful with the --overlay and --writable-tmpfs
    options and for building containers unprivileged, because they allow
    installing packages that assume they're running as root. A limitation on
    using it with --overlay and --writable-tmpfs however is that when only the
    fakeroot command can be used (because there are no user namespaces
    available, in suid mode) then the base image has to be a sandbox. This
    feature works nested inside of an apptainer container, where another
    apptainer command will also be in the fakeroot environment without
    requesting the --fakeroot option again, or it can be used inside an

OBS-URL: https://build.opensuse.org/request/show/993098
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=14
2022-08-04 15:03:35 +00:00
703518b6e6 Accepting request 988329 from home:mslacken:pr
- Update to version 1.0.3:
  * Process redirects that can come from sregistry with a library:// URL.
  * Fix inspect --deffile and inspect --all to correctly show definition files
    in sandbox container images instead of empty output. This has a side effect
    of also fixing the storing of definition files in the metadata of sif files
    built by Apptainer, because that metadata is constructed by doing inspect
    --all.

OBS-URL: https://build.opensuse.org/request/show/988329
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=12
2022-07-11 10:01:42 +00:00
25e40efe88 Accepting request 977938 from home:dimstar:Factory
- Update to version 1.0.2:

OBS-URL: https://build.opensuse.org/request/show/977938
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=10
2022-05-18 12:50:20 +00:00
Dominique Leuenberger
fb74f40285 Accepting request 963980 from network:cluster
obsoletes now singularity

OBS-URL: https://build.opensuse.org/request/show/963980
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apptainer?expand=0&rev=1
2022-03-22 18:40:58 +00:00
35263273c3 Accepting request 963975 from home:mslacken:pr
now with obsoletes

OBS-URL: https://build.opensuse.org/request/show/963975
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=8
2022-03-22 14:31:53 +00:00
03c395a4d0 Accepting request 962882 from home:mslacken:pr
removed old sourc

OBS-URL: https://build.opensuse.org/request/show/962882
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=7
2022-03-18 16:23:30 +00:00
5c09db8b93 Accepting request 962878 from home:mslacken:pr
- Updated to v1.0.1 with following bug fixes
  * Don't prompt for y/n to overwrite an existing file when build is called
    from a non-interactive environment. Fail with an error.
  * Preload NSS libraries prior to mountspace name creation to avoid
    circumstances that can cause loading those libraries from the container
    image instead of the host, for example in the startup environment.
  * Fix race condition where newly created loop devices can sometimes not be opened.
  * Support nvidia-container-cli v1.8.0 and above, via fix to capability set.

OBS-URL: https://build.opensuse.org/request/show/962878
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=6
2022-03-18 16:15:06 +00:00
577108884b OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=4 2022-03-18 16:11:05 +00:00
aa7d7189ba and the README
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=3
2022-02-18 11:57:30 +00:00
0165fcf774 corrected patch with right location
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=2
2022-02-18 11:56:19 +00:00
ba0684af03 Accepting request 955828 from home:mslacken:pr
following the apptainer fork

OBS-URL: https://build.opensuse.org/request/show/955828
OBS-URL: https://build.opensuse.org/package/show/network:cluster/apptainer?expand=0&rev=1
2022-02-18 10:34:02 +00:00