@@ -235,7 +235,6 @@ def __init__(
235
235
distro : str ,
236
236
local_config : Mapping [str , Any ],
237
237
computers : MutableMapping [DeviceName , ComputerContext ],
238
- proc_uid : int ,
239
238
restarting : bool = False ,
240
239
) -> None :
241
240
self .image_labels = kernel_config ["image" ]["labels" ]
@@ -254,7 +253,6 @@ def __init__(
254
253
self .computers = computers
255
254
self .restarting = restarting
256
255
self .local_config = local_config
257
- self .proc_uid = proc_uid
258
256
259
257
@abstractmethod
260
258
async def get_extra_envs (self ) -> Mapping [str , str ]:
@@ -575,7 +573,6 @@ def mount_static_binary(filename: str, target_path: str) -> None:
575
573
already_injected_hooks .add (hook_path )
576
574
577
575
self .additional_allowed_syscalls = sorted (list (additional_allowed_syscalls_set ))
578
- environ ["ADDITIONAL_GIDS" ] = "," .join (map (str , additional_gid_set ))
579
576
update_additional_gids (environ , additional_gids )
580
577
581
578
def get_overriding_uid (self ) -> Optional [int ]:
@@ -619,7 +616,6 @@ class AbstractAgent(
619
616
computers : MutableMapping [DeviceName , ComputerContext ]
620
617
images : Mapping [str , str ]
621
618
port_pool : Set [int ]
622
- proc_uid : int
623
619
624
620
redis : Redis
625
621
@@ -675,7 +671,6 @@ def __init__(
675
671
local_config ["container" ]["port-range" ][1 ] + 1 ,
676
672
)
677
673
)
678
- self .proc_uid = os .geteuid ()
679
674
self .stats_monitor = stats_monitor
680
675
self .error_monitor = error_monitor
681
676
self ._pending_creation_tasks = defaultdict (set )
@@ -1761,7 +1756,6 @@ async def init_kernel_context(
1761
1756
kernel_image : ImageRef ,
1762
1757
kernel_config : KernelCreationConfig ,
1763
1758
* ,
1764
- proc_uid : int ,
1765
1759
restarting : bool = False ,
1766
1760
cluster_ssh_port_mapping : Optional [ClusterSSHPortMapping ] = None ,
1767
1761
) -> AbstractKernelCreationContext :
@@ -1888,7 +1882,6 @@ async def create_kernel(
1888
1882
kernel_image ,
1889
1883
kernel_config ,
1890
1884
restarting = restarting ,
1891
- proc_uid = self .proc_uid ,
1892
1885
cluster_ssh_port_mapping = cluster_info .get ("cluster_ssh_port_mapping" ),
1893
1886
)
1894
1887
environ : dict [str , str ] = {** kernel_config ["environ" ]}
@@ -1911,10 +1904,10 @@ async def create_kernel(
1911
1904
if KernelFeatures .UID_MATCH in ctx .kernel_features :
1912
1905
environ ["LOCAL_GROUP_ID" ] = str (kernel_gid )
1913
1906
1914
- update_additional_gids (environ , sgids )
1915
1907
environ .update (
1916
1908
await ctx .get_extra_envs (),
1917
1909
)
1910
+ update_additional_gids (environ , sgids )
1918
1911
image_labels = kernel_config ["image" ]["labels" ]
1919
1912
1920
1913
agent_architecture = get_arch_name ()
0 commit comments