Skip to content

Commit

Permalink
Change some magic numbers to enums so that the code is more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
RH-steve-grubb committed Nov 18, 2019
1 parent 1cc34be commit 7f91cad
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/fapolicyd-defs.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* fapolicyd-defs.h - Header file for defines & enums that cause loops
* Copyright (c) 2019 Red Hat Inc.
* All Rights Reserved.
*
* This software may be freely redistributed and/or modified under the
* terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2, or (at your option) any
* later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor
* Boston, MA 02110-1335, USA.
*
* Authors:
* Steve Grubb <[email protected]>
*/

#ifndef FAPOLICYD_DEFS_HEADER
#define FAPOLICYD_DEFS_HEADER

typedef enum { OPEN_ACC, EXEC_ACC , ANY_ACC } access_t;
typedef enum { RULE_FMT_ORIG, RULE_FMT_COLON } rformat_t;

#endif

0 comments on commit 7f91cad

Please sign in to comment.