Skip to content

Commit 6bdc5c9

Browse files
authored
Do not allow packages to provide libcuda.so.1 (#2074)
Having a package provide libcuda.so.1 would conflict with the driver injected by the host which could cause problems for the user.
1 parent 53e8f03 commit 6bdc5c9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/sca/sca.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,12 @@ func generateSharedObjectNameDeps(ctx context.Context, hdl SCAHandle, generated
631631
}
632632

633633
for _, soname := range sonames {
634+
// Packages should not provide libcuda.so.1 because they will
635+
// conflict with the driver injected by the host.
636+
if soname == "libcuda.so.1" {
637+
continue
638+
}
639+
634640
libver := sonameLibver(soname)
635641

636642
if isInDir(path, expandedLibDirs) {

0 commit comments

Comments
 (0)