Podman: A tool for managing OCI containers and pods.
1163 matches across 15 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | cmd/podman/inspect/inspect.go | 261 | // InspectNormalize modifies a given row string based on the specified inspect type. |
| LOW | cmd/podman/machine/init.go | 261 | } |
| LOW | cmd/podman/machine/init.go | 281 | // // Examples: |
| LOW | cmd/podman/kube/play.go | 341 | // |
| LOW | cmd/podman/containers/cp.go | 241 | hostBaseName = filepath.Base(hostInfo.LinkTarget) |
| LOW | test/system/helpers.network.bash | 121 | EOF |
| LOW | test/system/helpers.bash | 81 | _LOG_PROMPT='#' |
| LOW | test/system/helpers.bash | 261 | rm -f $mylocks |
| LOW | test/system/helpers.bash | 361 | while read line; do |
| LOW | test/system/helpers.bash | 381 | # bats-1.11 to fix a more-than-one-slash-in-test-name bug, (2) as |
| LOW | test/system/helpers.bash | 501 | } |
| LOW | test/system/helpers.bash | 521 | # |
| LOW | test/system/helpers.bash | 961 | ######### |
| LOW | test/system/helpers.bash | 1161 | # Optional 2nd argument is a message to display if warning is missing |
| LOW | test/system/helpers.bash | 1281 | ############################# |
| LOW | test/system/helpers.registry.bash | 1 | # -*- bash -*- |
| LOW | libpod/runtime_ctr.go | 141 | |
| LOW | libpod/runtime_ctr.go | 681 | IgnoreDeps bool |
| LOW | libpod/runtime_ctr.go | 741 | // Don't need to do this in pod removal case - we're evicting the entire |
| LOW | libpod/runtime_ctr.go | 1061 | // EvictContainer removes the given container partial or full ID or name, and |
| LOW | libpod/container_internal_common.go | 881 | // the path exists on the container. |
| LOW | libpod/container_internal_common.go | 2441 | |
| LOW | libpod/container_internal_common.go | 2561 | s = strings.ReplaceAll(s, "$USERLIST", strings.Join(list, ",")) |
| LOW | libpod/container_exec.go | 21 | "go.podman.io/storage/pkg/stringid" |
| LOW | libpod/container_exec.go | 41 | // exec session's first process when attaching. Only available if |
| LOW | libpod/container_exec.go | 61 | // container. |
| LOW | libpod/container_config.go | 21 | // It is stored, read-only, on disk in Libpod's State. |
| LOW | libpod/container_config.go | 41 | |
| LOW | libpod/container_config.go | 61 | LockID uint32 `json:"lockID"` |
| LOW | libpod/container_config.go | 101 | type ContainerRootFSConfig struct { |
| LOW | libpod/container_config.go | 121 | // RootfsMapping specifies if there are mappings to apply to the rootfs. |
| LOW | libpod/container_config.go | 141 | // is not mounted into the container. It will be removed when the |
| LOW | libpod/container_config.go | 161 | // image volumes were handled in Libpod (support for these eventually |
| LOW | libpod/container_config.go | 181 | Passwd *bool `json:"passwd,omitempty"` |
| LOW | libpod/container_config.go | 201 | // MountLabel is the SELinux mount label for the container's root |
| LOW | libpod/container_config.go | 221 | // AddCurrentUserPasswdEntry indicates that Libpod should ensure that |
| LOW | libpod/container_config.go | 241 | UserNsCtr string `json:"userNsCtr,omitempty"` |
| LOW | libpod/container_config.go | 261 | OldPortMappings []types.OCICNIPortMapping `json:"portMappings,omitempty"` //nolint:staticcheck |
| LOW | libpod/container_config.go | 281 | // UseImageHostname indicates that /etc/hostname should not be |
| LOW | libpod/container_config.go | 301 | // sure to not change the json tags. |
| LOW | libpod/container_config.go | 321 | } |
| LOW | libpod/container_config.go | 341 | } |
| LOW | libpod/container_config.go | 361 | CgroupManager string `json:"cgroupManager,omitempty"` |
| LOW | libpod/container_config.go | 381 | LogSize int64 `json:"logSize"` |
| LOW | libpod/container_config.go | 401 | // OCIRuntime used to create the container |
| LOW | libpod/container_config.go | 421 | HealthCheckOnFailureAction define.HealthCheckOnFailureAction `json:"healthcheck_on_failure_action"` |
| LOW | libpod/container_config.go | 441 | // PreserveFD is a list of additional file descriptors (in addition |
| LOW | libpod/container_copy_common.go | 141 | } |
| LOW | libpod/container_path_resolution.go | 21 | // container's working dir. To be extra careful, let's first |
| LOW | libpod/oci_conmon_exec_common.go | 441 | "args": args, |
| LOW | libpod/container_api.go | 81 | // Once in ContainerStateRunning, the container can be transitioned to |
| LOW | libpod/container_api.go | 281 | |
| LOW | libpod/container_api.go | 381 | |
| LOW | libpod/container_api.go | 881 | } |
| LOW | libpod/container_api.go | 981 | // TCPEstablished tells the API to checkpoint a container |
| LOW | libpod/container_api.go | 1001 | // important to be able to restore a container multiple |
| LOW | libpod/container_api.go | 1021 | CreateImage string |
| LOW | libpod/runtime.go | 101 | // remove as much of the runtime as possible if they fail. This ensures |
| LOW | libpod/runtime.go | 661 | return err |
| LOW | libpod/oci.go | 21 | type OCIRuntime interface { //nolint:interfacebloat |
| 979 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | libpod/container_internal_common.go | 719 | cdi.WithSpecDirs(c.runtime.config.Engine.CdiSpecDirs.Get()...), |
| CRITICAL | libpod/container_internal_common.go | 2205 | nameservers := make([]string, 0, len(c.runtime.config.Containers.DNSServers.Get())+len(c.config.DNSServer)) |
| CRITICAL | libpod/container_internal_common.go | 2215 | nameservers = append(nameservers, c.runtime.config.Containers.DNSServers.Get()...) |
| CRITICAL | libpod/container_internal_common.go | 2240 | if len(c.config.DNSSearch) > 0 || len(c.runtime.config.Containers.DNSSearches.Get()) > 0 { |
| CRITICAL | libpod/container_internal_common.go | 2241 | customSearch := make([]string, 0, len(c.config.DNSSearch)+len(c.runtime.config.Containers.DNSSearches.Get())) |
| CRITICAL | libpod/container_internal_common.go | 2242 | customSearch = append(customSearch, c.runtime.config.Containers.DNSSearches.Get()...) |
| CRITICAL | libpod/container_internal_common.go | 2250 | options := make([]string, 0, len(c.config.DNSOption)+len(c.runtime.config.Containers.DNSOptions.Get())) |
| CRITICAL | libpod/container_internal_common.go | 2251 | options = append(options, c.runtime.config.Containers.DNSOptions.Get()...) |
| CRITICAL | libpod/networking_common.go | 51 | nameservers := make([]string, 0, len(c.runtime.config.Containers.DNSServers.Get())+len(c.config.DNSServer)) |
| CRITICAL | libpod/networking_common.go | 52 | nameservers = append(nameservers, c.runtime.config.Containers.DNSServers.Get()...) |
| CRITICAL | libpod/kube.go | 1331 | calculatedCaps := determineCapAddDropFromCapabilities(c.runtime.config.Containers.DefaultCapabilities.Get(), containerC |
| CRITICAL | libpod/container_inspect_linux.go | 148 | for _, cap := range c.runtime.config.Containers.DefaultCapabilities.Get() { |
| CRITICAL | libpod/container_internal.go | 2452 | if len(c.runtime.config.Engine.HooksDir.Get()) == 0 { |
| CRITICAL | libpod/container_internal.go | 2474 | manager, err := hooks.New(ctx, c.runtime.config.Engine.HooksDir.Get(), []string{"precreate", "poststop"}) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .cirrus.yml | 62 | # Curl-command prefix for downloading task artifacts, simply add the |
| MEDIUM | cmd/podman-mac-helper/install.go | 197 | // the entire installation path, and utilize sticky + read-only perms for the helper path |
| MEDIUM | libpod/healthcheck.go | 279 | // is called. Fundamentally this is expected so switch it to exit 0. |
| MEDIUM | libpod/container_internal.go | 939 | // Note: this function is currently meant as a robust solution to a narrow problem: start an infra-container when |
| MEDIUM | libpod/lock/shm/shm_lock.c | 160 | // Set mutexes to robust - if a process dies while holding a mutex, we'll get |
| MEDIUM | contrib/cirrus/lib.sh | 153 | # Farm tests utilize the rootless user to simulate a "remote" podman instance. |
| MEDIUM | pkg/systemd/generate/containers.go | 431 | // make systemd units more robust as it allows them to |
| MEDIUM | pkg/k8s.io/api/core/v1/types.go | 3377 | // should be considered safe for load balancers and clients to utilize. |
| MEDIUM | pkg/domain/infra/tunnel/runtime.go | 14 | // Image-related runtime using an ssh-tunnel to utilize Podman service |
| MEDIUM | pkg/domain/infra/tunnel/runtime.go | 20 | // Container-related runtime using an ssh-tunnel to utilize Podman service |
| MEDIUM | pkg/domain/infra/tunnel/runtime.go | 25 | // Container-related runtime using an ssh-tunnel to utilize Podman service |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | cmd/podman/completion/completion.go | 90 | "\n# This file is generated with %q; see: podman-completion(1)\n", cmd.CommandPath(), |
| MEDIUM | test/python/docker/compat/test_containers.py | 46 | # Create a new container and validate the count |
| MEDIUM | test/system/helpers.bash | 794 | # This function is intended to be used as '$(podman_runtime)', i.e. |
| MEDIUM | test/e2e/build_test.go | 1337 | # Create a summary file |
| MEDIUM | docs/source/conf.py | 25 | # Define the canonical URL for our custom docs.podman.io domain configured on Read the Docs |
| MEDIUM | contrib/cirrus/runner.sh | 354 | # This file is collected and parsed by Cirrus-CI so must be in $GOSRC |
| MEDIUM | .github/workflows/cherry-pick.yml | 144 | # Create a new branch for the cherry-pick PR |
| MEDIUM | .github/workflows/cherry-pick.yml | 282 | # Create a new branch for the cherry-pick PR |
| MEDIUM | pkg/systemd/parser/unitfile_test.go | 101 | # This file is part of systemd. |
| MEDIUM | pkg/systemd/parser/unitfile_test.go | 170 | # This file is part of systemd. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | libpod/runtime_ctr.go | 142 | // Step 1: Alter the config. Save the old name, we need it to rewrite |
| LOW | libpod/runtime_ctr.go | 147 | // Step 2: rewrite the old container's config in the DB. |
| LOW | libpod/runtime_ctr.go | 156 | // Step 3: rename the container in c/storage. |
| LOW | libpod/runtime_ctr.go | 874 | // If we're not force-removing, we need to check if we're in a good |
| LOW | .github/workflows/first_contrib_cert_generator.yml | 32 | # Step 1: Check if this is the contributor's first merged PR. |
| LOW | .github/workflows/first_contrib_cert_generator.yml | 56 | # Step 2: Checkout the repository containing the certificate HTML file. |
| LOW | .github/workflows/first_contrib_cert_generator.yml | 65 | # Step 3: Update the HTML file locally |
| LOW | .github/workflows/first_contrib_cert_generator.yml | 79 | # Step 4: Setup Node.js environment |
| LOW | .github/workflows/first_contrib_cert_generator.yml | 86 | # Step 5: Install Puppeteer |
| LOW | .github/workflows/first_contrib_cert_generator.yml | 92 | # Step 6: Take a screenshot of the certificate div |
| LOW | .github/workflows/first_contrib_cert_generator.yml | 120 | # Step 7: Upload certificate image to separate repository |
| LOW | .github/workflows/first_contrib_cert_generator.yml | 223 | # Step 8: Comment on Pull Request with embedded image |
| LOW | .github/workflows/first_contrib_cert_generator.yml | 275 | # Step 9: Clean up temporary files |
| LOW | pkg/util/utils.go | 442 | // Step 1: Remove extension regions from mapping |
| LOW | pkg/specgen/generate/kube/kube.go | 530 | // If the container has bind mounts, we need to check if |
| LOW | pkg/api/handlers/utils/images.go | 277 | // We need to check if no progress was sent previously. In that case, we should only return the base error message. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/apiv2/python/rest_api/test_v2_0_0_artifact.py | 188 | def test_add_with_annotations(self): |
| LOW | test/apiv2/python/rest_api/test_v2_0_0_artifact.py | 295 | def test_add_append_with_type_fails(self): |
| LOW | test/apiv2/python/rest_api/test_v2_0_0_artifact.py | 318 | def test_add_with_append_to_missing_artifact_fails(self): |
| LOW | test/apiv2/python/rest_api/test_v2_0_0_artifact.py | 337 | def test_add_without_name_and_filename_fails(self): |
| LOW | test/apiv2/python/rest_api/test_v2_0_0_artifact.py | 355 | def test_add_local_with_not_existing_file(self): |
| LOW | test/apiv2/python/rest_api/test_v2_0_0_artifact.py | 378 | def test_add_local_with_not_absolute_path(self): |
| LOW | test/apiv2/python/rest_api/test_v2_0_0_artifact.py | 441 | def test_inspect_absent_artifact_fails(self): |
| LOW | test/apiv2/python/rest_api/test_v2_0_0_artifact.py | 525 | def test_pull_unauthorised_fails(self): |
| LOW | test/apiv2/python/rest_api/test_v2_0_0_artifact.py | 686 | def test_remove_absent_artifact_fails(self): |
| LOW | test/apiv2/python/rest_api/test_v2_0_0_artifact.py | 743 | def test_push_missing_artifact(self): |
| LOW | test/apiv2/python/rest_api/test_v2_0_0_artifact.py | 815 | def test_extract_absent_fails(self): |
| LOW | test/apiv2/python/rest_api/test_v2_0_0_container.py | 45 | def test_list_filters_label_not(self): |
| LOW | test/apiv2/python/rest_api/test_v2_0_0_container.py | 281 | def test_create_duplicate_name(self): |
| LOW | test/apiv2/python/rest_api/test_v2_0_0_container.py | 441 | def test_host_config_port_bindings(self): |
| LOW | test/apiv2/python/rest_api/test_v2_0_0_container.py | 478 | def test_host_config_cgroupns_mode(self): |
| LOW | test/apiv2/python/rest_api/test_v2_0_0_volume.py | 126 | def test_volume_label_override(self): |
| LOW | test/python/docker/compat/test_images.py | 79 | def test_get_image_exists_not(self): |
| LOW | test/python/docker/compat/test_images.py | 128 | def test_build_image_via_api_client(self): |
| LOW | test/python/docker/compat/test_containers.py | 51 | def test_start_container_with_random_port_bind(self): |
| LOW | test/python/docker/compat/test_containers.py | 96 | def test_remove_container_without_force(self): |
| LOW | test/python/docker/compat/test_containers.py | 121 | def test_pause_stopped_container(self): |
| LOW | test/python/docker/compat/test_containers.py | 210 | def test_mount_preexisting_dir(self): |
| LOW | test/python/docker/compat/test_containers.py | 229 | def test_non_existent_workdir(self): |
| LOW | test/python/docker/compat/test_containers.py | 268 | def test_mount_options_by_default(self): |
| LOW | test/python/docker/compat/test_containers.py | 312 | def test_container_inspect_compatibility(self): |
| LOW | test/python/docker/compat/test_system.py | 23 | def test_info_container_details(self): |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/system/helpers.bash | 1173 | # Set PODMAN_TEST_DEBUG to the name of one or more functions you want to debug |
| LOW | test/system/helpers.bash | 1188 | # Check if our calling function matches any of the desired strings |
| LOW | test/system/helpers.systemd.bash | 120 | # Check if this is a template unit (ends with @) |
| LOW | hack/install_golangci.sh | 29 | # Check if it's already installed globally. |
| LOW | hack/branch_commits.rb | 15 | # Check if a given Git branch exists |
| LOW | contrib/packit-tmt/packit-rpm-git-commit.sh | 10 | # Set path to rpm spec file |
| LOW | .github/workflows/cherry-pick.yml | 49 | # Check if user has write permission to the repository |
| LOW | .github/workflows/cherry-pick.yml | 102 | # Check if branch exists |
| LOW | .github/workflows/cherry-pick.yml | 122 | # Check if branch exists |
| LOW | .github/workflows/cherry-pick.yml | 271 | # Check if branch exists |
| LOW | .github/workflows/assign.yml | 22 | # Check if issue has any assignees |
| LOW | .github/workflows/update-podmanio.yml | 94 | # Check if version is actually higher than one on podman.io |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | test/python/docker/compat/test_images.py | 0 | integration tests for exercising docker-py against podman service. |
| HIGH | test/python/docker/compat/test_containers.py | 0 | integration tests for exercising docker-py against podman service. |
| HIGH | test/python/docker/compat/test_system.py | 0 | integration tests for exercising docker-py against podman service. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | test/apiv2/python/rest_api/test_v2_0_0_image.py | 188 | |
| MEDIUM | test/apiv2/python/rest_api/test_v2_0_0_image.py | 189 | |
| MEDIUM | test/apiv2/python/rest_api/test_v2_0_0_image.py | 190 | |
| MEDIUM | test/apiv2/python/rest_api/test_v2_0_0_image.py | 192 | |
| MEDIUM | test/apiv2/python/rest_api/test_v2_0_0_image.py | 193 | |
| MEDIUM | test/apiv2/python/rest_api/test_v2_0_0_image.py | 196 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | troubleshooting.md | 885 | except Exception as e: |
| LOW | troubleshooting.md | 912 | except Exception as e: |
| MEDIUM | troubleshooting.md | 875 | def reload_podman_network(): |
| MEDIUM | troubleshooting.md | 899 | def signal_listener(): |
| LOW | test/apiv2/python/rest_api/test_v2_0_0_container.py | 388 | except Exception: |
| MEDIUM | test/apiv2/python/rest_api/test_v2_0_0_container.py | 379 | def _impl(fifo, stop): |
| LOW | test/apiv2/python/rest_api/v1_test_rest_v1_0_0.py | 34 | except Exception as e: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/apiv2/python/rest_api/test_v2_0_0_container.py | 1 | |
| LOW | test/apiv2/python/rest_api/test_v2_0_0_container.py | 2 | |
| LOW | test/apiv2/python/rest_api/test_v2_0_0_container.py | 6 | |
| LOW | test/apiv2/python/rest_api/v1_test_rest_v1_0_0.py | 3 | |
| LOW | test/apiv2/python/rest_api/v1_test_rest_v1_0_0.py | 4 | |
| LOW | test/apiv2/python/rest_api/v1_test_rest_v1_0_0.py | 5 | |
| LOW | test/apiv2/python/rest_api/v1_test_rest_v1_0_0.py | 10 | |
| LOW | test/python/docker/__init__.py | 4 | |
| LOW | test/compose/simple_port_map/frontend/app.py | 2 | |
| LOW | contrib/cirrus/cirrus_yaml_test.py | 7 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | pkg/k8s.io/api/apps/v1/types.go | 42 | // - Storage: As many VolumeClaims as requested. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/apiv2/python/rest_api/test_v2_0_0_container.py | 373 | |
| LOW | test/apiv2/python/rest_api/test_v2_0_0_container.py | 379 | |
| LOW | test/python/docker/compat/test_containers.py | 312 | |
| LOW | contrib/cirrus/cirrus_yaml_test.py | 74 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/e2e/image_sign_test.go | 52 | session := podmanTest.Podman([]string{"image", "sign", "--directory", sigDir, "--sign-by", "foo@bar.com", "docker://li |
| LOW | test/e2e/image_sign_test.go | 68 | session := podmanTest.Podman([]string{"image", "sign", "--all", "--directory", sigDir, "--sign-by", "foo@bar.com", "do |
| LOW | test/e2e/save_test.go | 180 | session = podmanTest.Podman([]string{"push", "-q", "--tls-verify=false", "--sign-by", "foo@bar.com", pushedImage}) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | pkg/domain/infra/abi/play.go | 63 | // Make sure to replace the service container as well if requested by |