(self)
Set the spec capabilities
Set the spec capabilities
Set the spec capabilities
def _add_capabilities_spec(self):
        """Set the spec capabilities"""
        if not Config.conf['runc_capabilities']:
            return
        self._container_specjson["process"]["capabilities"]["ambient"] = \
            Config.conf['runc_capabilities']
        self._container_specjson["process"]["capabilities"]["bounding"] = \
            Config.conf['runc_capabilities']
        self._container_specjson["process"]["capabilities"]["effective"] = \
            Config.conf['runc_capabilities']
        self._container_specjson["process"]["capabilities"]["inheritable"] = \
            Config.conf['runc_capabilities']
        self._container_specjson["process"]["capabilities"]["permitted"] = \
            Config.conf['runc_capabilities']
def _add_capabilities_spec ( self ) : if not Config . conf [ 'runc_capabilities' ] : return self . _container_specjson [ "process" ] [ "capabilities" ] [ "ambient" ] = Config . conf [ 'runc_capabilities' ] self . _container_specjson [ "process" ] [ "capabilities" ] [ "bounding" ] = Config . conf [ 'runc_capabilities' ] self . _container_specjson [ "process" ] [ "capabilities" ] [ "effective" ] = Config . conf [ 'runc_capabilities' ] self . _container_specjson [ "process" ] [ "capabilities" ] [ "inheritable" ] = Config . conf [ 'runc_capabilities' ] self . _container_specjson [ "process" ] [ "capabilities" ] [ "permitted" ] = Config . conf [ 'runc_capabilities' ]