There is a right to roam on Spanish coastlines (see Ley de Costas de España). You are most definitely allowed to walk the coastline here, though the exact placement of the path doesn't seem quite correct.