LCOV - code coverage report
Current view: top level - stub - seccomp_stub.cpp (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 8 8
Test Date: 2026-07-28 10:54:05 Functions: 100.0 % 4 4

            Line data    Source code
       1              : /**
       2              :  * Copyright (c) 2025 Huawei Technologies Co., Ltd.
       3              :  * This program is free software, you can redistribute it and/or modify it under the terms and conditions of
       4              :  * CANN Open Software License Agreement Version 2.0 (the "License").
       5              :  * Please refer to the License for details. You may not use this file except in compliance with the License.
       6              :  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
       7              :  * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
       8              :  * See LICENSE in the root of the software repository for the full text of the License.
       9              :  */
      10              : #include "seccomp.h"
      11              : 
      12            1 : int seccomp_rule_add(scmp_filter_ctx ctx,
      13              :                      uint32_t action, int syscall, unsigned int arg_cnt, ...)
      14              : {
      15              :     (void) ctx;
      16              :     (void) action;
      17              :     (void) syscall;
      18              :     (void) arg_cnt;
      19            1 :     return 0;
      20              : }
      21              : 
      22            1 : scmp_filter_ctx seccomp_init(uint32_t def_action)
      23              : {
      24              :     (void) def_action;
      25            1 :     return nullptr;
      26              : }
      27              : 
      28            1 : int seccomp_load(const scmp_filter_ctx ctx)
      29              : {
      30              :     (void) ctx;
      31            1 :     return 0;
      32              : }
      33              : 
      34            1 : int seccomp_syscall_resolve_name(const char *name)
      35              : {
      36              :     (void) name;
      37            1 :     return 0;
      38              : }
        

Generated by: LCOV version 2.0-1