- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 116 for 0o700 (0.04 sec)
-
cmd/kubeadm/app/util/etcd/etcddata.go
"os" "github.com/pkg/errors" ) // CreateDataDirectory creates the etcd data directory (commonly /var/lib/etcd) with the right permissions. func CreateDataDirectory(dir string) error { if err := os.MkdirAll(dir, 0700); err != nil { return errors.Wrapf(err, "failed to create the etcd data directory: %q", dir) } return nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 03 15:38:54 UTC 2020 - 927 bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/AbstractFilePermissions.java
return 64 * user.toUnixNumeric() + 8 * group.toUnixNumeric() + other.toUnixNumeric(); } @SuppressWarnings("OctalInteger") protected static int getUserPartOf(int unixNumeric) { return (unixNumeric & 0_700) >> 6; } protected static String getUserPartOf(String unixSymbolic) { return unixSymbolic.substring(0, 3); } @SuppressWarnings("OctalInteger")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2K bytes - Viewed (0) -
src/cmd/gofmt/gofmt_unix_test.go
} dir := t.TempDir() fn := filepath.Join(dir, "perm.go") // Create a file that needs formatting without write permission. if err := os.WriteFile(filepath.Join(fn), []byte(" package main"), 0o400); err != nil { t.Fatal(err) } // Set mtime of the file in the past. past := time.Now().Add(-time.Hour) if err := os.Chtimes(fn, past, past); err != nil { t.Fatal(err) } info, err := os.Stat(fn)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 18 12:52:14 UTC 2023 - 1.4K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/driver/settings.go
return fmt.Errorf("could not encode settings: %w", err) } // create the settings directory if it does not exist // XDG specifies permissions 0700 when creating settings dirs: // https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html if err := os.MkdirAll(filepath.Dir(fname), 0700); err != nil { return fmt.Errorf("failed to create settings directory: %w", err) } if err := os.WriteFile(fname, data, 0644); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 4.2K bytes - Viewed (0) -
pkg/uds/listener.go
return nil, fmt.Errorf("failed to remove unix://%s: %v", path, err) } // Attempt to create the folder in case it doesn't exist if err := os.MkdirAll(filepath.Dir(path), 0o750); err != nil { // If we cannot create it, just warn here - we will fail later if there is a real error log.Warnf("Failed to create directory for %v: %v", path, err) } var err error
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 1.7K bytes - Viewed (0) -
cni/pkg/pluginlistener/listener.go
return nil, fmt.Errorf("failed to remove unix://%s: %v", path, err) } // Attempt to create the folder in case it doesn't exist if err := os.MkdirAll(filepath.Dir(path), 0o750); err != nil { // If we cannot create it, just warn here - we will fail later if there is a real error log.Warnf("Failed to create directory for %v: %v", path, err) } var err error
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 1.7K bytes - Viewed (0) -
cni/pkg/constants/constants.go
RepairLabelSelectors = "repair-label-selectors" RepairFieldSelectors = "repair-field-selectors" ) // Internal constants const ( DefaultKubeconfigMode = 0o600 CNIAgentLogScope = "cni-agent" CNIPluginLogScope = "cni-plugin" CNIAddEventPath = "/cmdadd" UDSLogPath = "/log" // K8s liveness and readiness endpoints LivenessEndpoint = "/healthz"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 21 18:32:01 UTC 2024 - 2.8K bytes - Viewed (0) -
cmd/kubeadm/app/util/staticpod/utils_linux_test.go
return nil }, cfg); err != nil { t.Fatal(err) } verifyPodSecurityContext(t, &pod, runAsUser, runAsGroup, nil) verifyContainerSecurityContext(t, pod.Spec.Containers[0], nil, []v1.Capability{"ALL"}, ptr.To(false)) wantUpdateFiles := map[string]ownerAndPermissions{ cfg.Etcd.Local.DataDir: {uid: runAsUser, gid: runAsGroup, permissions: 0700},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 11 14:41:12 UTC 2023 - 7.4K bytes - Viewed (0) -
security/tools/generate_csr/main.go
func saveCreds(csrPem []byte, privPem []byte) { err := os.WriteFile(*outCsr, csrPem, 0o644) if err != nil { log.Fatalf("Could not write output certificate request: %s.", err) } err = os.WriteFile(*outPriv, privPem, 0o600) if err != nil { log.Fatalf("Could not write output private key: %s.", err) } } func main() { flag.Parse() csrPem, privPem, err := util.GenCSR(util.CertOptions{ Host: *host,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 2.1K bytes - Viewed (0) -
security/pkg/nodeagent/util/util.go
// If directory string is empty, return nil. func OutputKeyCertToDir(dir string, privateKey, certChain, rootCert []byte) error { var err error if len(dir) == 0 { return nil } certFileMode := os.FileMode(0o600) if k8sInCluster.Get() != "" { // If this is running on k8s, give more permission to the file certs. // This is typically used to share the certs with non-proxy containers in the pod which does not run as root or 1337.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 17 10:33:38 UTC 2023 - 2.9K bytes - Viewed (0)