Skip to content

Commit

Permalink
Update lookup_tsource for debian backend
Browse files Browse the repository at this point in the history
  • Loading branch information
RH-steve-grubb committed Jul 7, 2023
1 parent 3668f03 commit 544f7e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/library/database.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* database.c - Trust database
* Copyright (c) 2016,2018-22 Red Hat Inc.
* Copyright (c) 2016,2018-23 Red Hat Inc.
* All Rights Reserved.
*
* This software may be freely redistributed and/or modified under the
Expand Down Expand Up @@ -103,6 +103,8 @@ const char *lookup_tsource(unsigned int tsource)
{
case SRC_RPM:
return "rpmdb";
case SRC_DEB:
return "debdb";
case SRC_FILE_DB:
return "filedb";
}
Expand Down
3 changes: 2 additions & 1 deletion src/library/fapolicyd-backend.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* fapolicyd-backend.h - Header file for database backend interface
* Copyright (c) 2020 Red Hat Inc.
* Copyright (c) 2020-23 Red Hat Inc.
* All Rights Reserved.
*
* This software may be freely redistributed and/or modified under the
Expand Down Expand Up @@ -28,6 +28,7 @@
#include "conf.h"
#include "llist.h"

// If this gets extended, please put the new items at the end.
typedef enum { SRC_UNKNOWN, SRC_RPM, SRC_FILE_DB, SRC_DEB } trust_src_t;

// source, size, sha
Expand Down

0 comments on commit 544f7e5

Please sign in to comment.