@@ -1043,12 +1043,12 @@ func getCurrentUser() string {
10431043}
10441044
10451045type deviceResult struct {
1046- devicePaths []string
1047- deviceCgroupRules []string
1048- additionalDeviceVolumes []string
1049- hasVideoDevice bool
1050- hasSoundDevice bool
1051- hasGPUDevice bool
1046+ devicePaths []string
1047+ deviceCgroupRules []string
1048+ deviceVolumes []string
1049+ hasVideoDevice bool
1050+ hasSoundDevice bool
1051+ hasGPUDevice bool
10521052}
10531053
10541054func getDevices () (* deviceResult , error ) {
@@ -1068,17 +1068,17 @@ func getDevices() (*deviceResult, error) {
10681068 }
10691069 // Verify if there are real video devices (cameras) in /dev/v4l/by-id
10701070 if camDevices := getVideoDevices (); len (camDevices ) > 0 {
1071- res .deviceCgroupRules = append (res .deviceCgroupRules , "\" c 81:* rwm\" " ) // rule for V4L devices
1071+ res .deviceCgroupRules = append (res .deviceCgroupRules , "c 81:* rwm" ) // rule for V4L devices
10721072 if paths .New ("/dev/v4l" ).Exist () {
1073- res .additionalDeviceVolumes = append (res .additionalDeviceVolumes , "/dev/v4l" )
1073+ res .deviceVolumes = append (res .deviceVolumes , "/dev/v4l" )
10741074 }
10751075 res .hasVideoDevice = true
10761076 }
10771077 // Verify if there are real sound devices in /dev/snd/by-id
10781078 if sndDev := getSoundDevices (); len (sndDev ) > 0 {
1079- res .deviceCgroupRules = append (res .deviceCgroupRules , "\" c 116:* rwm\" " ) // rule for ALSA devices
1079+ res .deviceCgroupRules = append (res .deviceCgroupRules , "c 116:* rwm" ) // rule for ALSA devices
10801080 if paths .New ("/dev/snd" ).Exist () {
1081- res .additionalDeviceVolumes = append (res .additionalDeviceVolumes , "/dev/snd" )
1081+ res .deviceVolumes = append (res .deviceVolumes , "/dev/snd" )
10821082 }
10831083 res .hasSoundDevice = true
10841084 }
0 commit comments