Comments (3)
@samcornwell Could you provide an example of this where the arguments are known? One of the reasons that I didn't go down this route was that you would need to know exactly what you are looking at. Or are you suggesting that, should we have a number, we try numeric matches and fall back to a regex if that raises an exception?
from inspec-profile-disa_stig-el7.
I'm just saying that something like with_args(/remember=(\d{2,}|[5-9])/)
would be better if we could select the arg remember
and apply the real construct >= 5
to its value somehow.
My ruby and RSpec foo are not good enough to know exactly how to do it most easily. I thought it would be ideal to be able to be able to select the arg inline (like is done with with_args
) and apply one of the the native matchers to it, but I don't know if it's possible to do that easily. Perhaps one would have to define their own ops and pass those in, or chain them.
Maybe the best way would be to select the rules using a where
, and iterate over those using a PamRule resource or structure. A new resource is more work than I intended to propose though.
from inspec-profile-disa_stig-el7.
fixed by #41
from inspec-profile-disa_stig-el7.
Related Issues (20)
- Update all controls to use the `input` vs `attribute` given we are now based on InSpec 4.x
- Move inputs/attributes into the `inspec.yml` file and rename `attributes.yml` to `inputs.yml.example` HOT 1
- There needs to be a beaker test suite that is docker-only HOT 1
- Inspec tests fail to run after SSG remediation on a VM
- Tag for STIG V1R2
- Review 73163 HOT 3
- Review 72223 HOT 1
- Update the reporting / check to be more clear
- Review 71999 HOT 1
- Review 71961 - this seems broken :) HOT 2
- PAM checks need to be corrected
- V-72027 | Control test code is incorrect
- V-71973 and V-71975 break due to duplicate input declaration
- V-72191 switched 'insmod' to 'kmod'
- V-71999 throwing "undefined local variable or method `linux_update`"
- This should not be set in the control but in the input.yml or attributes
- This is also breaking the input - as it will reset the user input
- The 'file_integrity_tool' input in V-71973 is beting set to 'weekly' somehow HOT 1
- Bug -- PAM resource all_with_args calls can match true against an undefined module
- Update V-72427 to handle edge case
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inspec-profile-disa_stig-el7.